简体   繁体   中英

Reading and retrieving data from all rows for a coloumn on parse.com databse for android

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM