Home » Android » parse platform – How to retrieve all rows of ParseObject in Android

parse platform – How to retrieve all rows of ParseObject in Android

Posted by: admin June 15, 2020 Leave a comment

Questions:

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.

How to&Answers:

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.