Hi,
After saving object Saving Object parse.com Android
Now I am writing here how to retrieve object using some key here using objectId.
If you have objectId then it is very easy to retrieve object value.
parseObject use ParseQuery to handle this.
ParseQuery query = ParseQuery.getQuery("EmployeeInfo");
query.getInBackground("vWMyK&YEKP", new GetCallback() {
public void done(ParseObject object, ParseException e) {
if (e == null) {
// object will be your employeeInfo
} else {
Toast.makeText(getApplicationContext(),"Error : :"+e.getMessage",Toast.LENGHT_SHORT).show();
// something went wrong
}
}
});
0 Comment(s)