Get Object
import com.parse.ParseObject;
import com.parse.ParseQuery;
import com.parse.GetCallback;
import com.parse.ParseException;
public void getObject()
{
ParseQuery<ParseObject> query = ParseQuery.getQuery("ClassName");
query.getInBackground("objectId", new GetCallback<ParseObject>()
{
public void done(ParseObject object, ParseException e)
{
if (e == null)
{
// your object will be returned here
}
else
{
// something went wrong, check the exception for more infos
}
}
});
}Last updated
Was this helpful?