Error when checking result.getMeta().getCode() from Result
Keeping getting an error when trying to check the code from the meta data
from the results. Not sure why code is not working, here's a snippet of
what i'm doing. Everything up to this point works fine.
Result<VenuesSearchResult> result =
foursquareapi.venuesSearch(lat+","+lng, null, null, null, null, null,
null, null, null, null, null);
if (result.getMeta().getCode() == 200) {
Toast.makeText(getApplicationContext(), "phase 5",
Toast.LENGTH_SHORT).show();
}else {
Toast.makeText(getApplicationContext(), "Error has occured",
Toast.LENGTH_SHORT).show();
}
No comments:
Post a Comment