Created
July 6, 2014 13:28
-
-
Save kyze8439690/8eb2da153cd207cd330b to your computer and use it in GitHub Desktop.
run asynctask concurrently on targetSdkVersion 13+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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