Skip to content

Instantly share code, notes, and snippets.

@jdamcd
Last active September 22, 2015 18:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jdamcd/da1c631cbb04aac08364 to your computer and use it in GitHub Desktop.
new AsyncTask<Void, Void, String>() {
@Override
protected String doInBackground(Void... params) {
return Example.blocking();
}
@Override
protected void onPostExecute(String result) {
updateUi(result);
}
}.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment