Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created December 28, 2017 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/2777bac99e2dc1dcd20e0c189c2492e4 to your computer and use it in GitHub Desktop.
Save jezinka/2777bac99e2dc1dcd20e0c189c2492e4 to your computer and use it in GitHub Desktop.
protected void onPostExecute(String s) {
super.onPostExecute(s);
if (s != null) {
try {
JSONArray scheduleJsonList = new JSONArray(s);
RoutesAdapter mAdapter = new RoutesAdapter(scheduleJsonList);
mRoutesList.setAdapter(mAdapter);
} catch (JSONException e) {
Log.e(TAG, e.getMessage());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment