Skip to content

Instantly share code, notes, and snippets.

@kyze8439690
Created July 6, 2014 13:28
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 kyze8439690/8eb2da153cd207cd330b to your computer and use it in GitHub Desktop.
Save kyze8439690/8eb2da153cd207cd330b to your computer and use it in GitHub Desktop.
run asynctask concurrently on targetSdkVersion 13+
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.HONEYCOMB_MR1) {
task.execute();
} else {
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment