Create a gist now

Instantly share code, notes, and snippets.

@jdamcd /AsyncTask.java Secret
Last active Sep 22, 2015

What would you like to do?
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