Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created December 28, 2017 09:13
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/d839e3f201ae67ccac4659afab8281c4 to your computer and use it in GitHub Desktop.
Save jezinka/d839e3f201ae67ccac4659afab8281c4 to your computer and use it in GitHub Desktop.
private class OdjazdQueryTask extends AsyncTask<URL, Void, String> {
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
if (s != null) {
mTextView.setText(s);
}
}
@Override
protected String doInBackground(URL... urls) {
URL url = urls[0];
return makeOdjazdQuery(url);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment