android - My console for Firebase realtime database doesn't load data -


my console firebase realtime database doesn't load data. json editor doesn't show data. can't figure out why, maybe see don't.

sourcecode:

public void btn_it_click(){      if (imguri!=null){          final progressdialog progressdialog=new progressdialog(this);         progressdialog.settitle("uploading image");         progressdialog.show();          storagereference ref=mstorageref.child(fb_storage_path+system.currenttimemillis()+"."+getimageext(imguri));         ref.putfile(imguri).addonsuccesslistener(new onsuccesslistener<uploadtask.tasksnapshot>() {             @override             public void onsuccess(uploadtask.tasksnapshot tasksnapshot) {                  progressdialog.dismiss();                 toast.maketext(getapplicationcontext(),"image uploaded",toast.length_short).show();                   string name=medtname.gettext().tostring().trim();                 string edition=medtedition.gettext().tostring().trim();                 string isbnno=medtisbnno.gettext().tostring().trim();                 string autthenamee=mauthername.gettext().tostring().trim();                 string url=murl.gettext().tostring().trim();                 string id=mdatabaseref.push().getkey();                  bookinfo bookinfo=new bookinfo(id,name,edition,tasksnapshot.getdownloadurl().tostring(),url,autthenamee,isbnno);                  mdatabaseref.child(id).setvalue(bookinfo);                 toast.maketext(getapplicationcontext(),"value sent",toast.length_short).show();             } 

bookinfo class class has getter , setter .it include constructer etc

public class bookinfo {      string id,name,edition,isbnno,authname,imageurl,bookurl;      public bookinfo(string id, string name, string edition, string imageurl, string bookurl, string authname, string isbnno) {         this.id = id;         this.name = name;         this.edition = edition;         this.imageurl = imageurl;         this.bookurl = bookurl;         this.authname = authname;         this.isbnno = isbnno;     }      public bookinfo() {     }      public string getid() {         return id;     }      public void setid(string id) {         this.id = id;     }      public string getname() {         return name;     }      public void setname(string name) {         this.name = name;     }      public string getedition() {         return edition;     }      public void setedition(string edition) {         this.edition = edition;     }      public string getisbnno() {         return isbnno;     }      public void setisbnno(string isbnno) {         this.isbnno = isbnno;     }      public string getauthname() {         return authname;     }      public void setauthname(string authname) {         this.authname = authname;     }      public string getimageurl() {         return imageurl;     }      public void setimageurl(string imageurl) {         this.imageurl = imageurl;     }      public string getbookurl() {         return bookurl;     }      public void setbookurl(string bookurl) {         this.bookurl = bookurl;     } } 


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -