what I'm trying to do is querying a class and getting some strings. But the below code returns something like ;
com.parse.ParseObject@b4209180
and I couldn't get it to normal string value.
ParseQuery<ParseObject> query = ParseQuery.getQuery("question");
//query.whereKeyExists:@"objectId"
query.whereExists("questionTopic");
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> topics, ParseException e) {
// TODO Auto-generated method stub
if(e==null){
textview.setText(topics.toString());
}
}else{
Log.d("notretreive", "Error: " + e.getMessage());
}
}
});
from the API I can see that the class
ParseObject
InheritstoString()
from Object class.That means unless there is implementation of custom toString() it will return the human-readable description of this object.
check here for the toString() being called in your case
EDIT:
First of all you are trying to call toString() on List object by
you will have to iterate over that List like