UploadingItemAdapter Gives LogCat Null Value And ListItem's Text Views Are Also Remains Blank In Fragment Of Listview
I don't know in which part i made mistake. In UploadItemAdapter.class,uploadingDetails.getTitle() and uploadingDetails.getDiscription() both gives me null in my log cat. In android
Solution 1:
The name of the fields in your model class must much to the name of the data on witch your want retrieve in firebase data reference node
Solution 2:
I don't understand how it worked but when i changed following code problem was solved UploadindDetils.java
package com.example.shiva.gconnection;
public class UploadingDetails {
private String mTitle;
private String mDiscription;
private String mArrayUri;
public UploadingDetails() {
}
public UploadingDetails(String title, String discription, String arrayUri) {
this.mTitle = title;
this.mDiscription = discription;
this.mArrayUri = arrayUri;
}
public String getTitle() {
return this.mTitle;
}
public void setTitle(String title) {
this. mTitle = title;
}
public void setDiscription(String discription) {
this.mDiscription = discription;
}
public void setArrayUri(String arrayUri) {
this.mArrayUri = arrayUri;
}
public String getDiscription() {
return this.mDiscription;
}
public String getArrayUri() {
return this.mArrayUri;
}
}
Post a Comment for "UploadingItemAdapter Gives LogCat Null Value And ListItem's Text Views Are Also Remains Blank In Fragment Of Listview"