I have 4 rows of data saved for a column called Message on Parse.com database.
How can I read all the rows and store data in a string array on android ?
Pretty much straight from the doc :
ParseQuery<ParseObject> query = ParseQuery.getQuery("YourClassName");
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> objects, ParseException e) {
if (e == null) {
for (int i=0; i<objects.length; ++i) {
Log.d("tag", "message=" + objects[i].getString("Message"));
}
}
}
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.