user2843350
user2843350

Reputation:

How to retrieve all rows of ParseObject in Android

On googlemap if my app user creates any maker I am storing that marker location details as a parse object,
here it is
now I want to retrieve all location details of all markers, how to do it. I already gone through parse.com tutorial links.

Upvotes: 8

Views: 7715

Answers (1)

menapole
menapole

Reputation: 1178

Try something like....

    ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("GreenMarkers");
    query.findInBackground(new FindCallback<ParseObject>() {
    public void done(List<ParseObject> markers, ParseException e) {
        if (e == null) {
            // your logic here
        } else {
            // handle Parse Exception here
        }
    }
});

This should get all items from the "GreenMarkers" table.

Upvotes: 16

Related Questions