From 649790adc5e0bd6d64273b63649e5af8b12e59c1 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 24 Jan 2011 21:17:59 -0800 Subject: [PATCH] Use multiple async tasks. Change-Id: If6be431a4f9443eaaf4478bae57c29f77f558b91 --- .../src/com/example/android/apis/app/LoaderThrottle.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/ApiDemos/src/com/example/android/apis/app/LoaderThrottle.java b/samples/ApiDemos/src/com/example/android/apis/app/LoaderThrottle.java index fb69ff6ea..1c4c83965 100644 --- a/samples/ApiDemos/src/com/example/android/apis/app/LoaderThrottle.java +++ b/samples/ApiDemos/src/com/example/android/apis/app/LoaderThrottle.java @@ -449,7 +449,8 @@ public class LoaderThrottle extends Activity { return null; } }; - mPopulatingTask.execute((Void[])null); + mPopulatingTask.executeOnExecutor( + AsyncTask.THREAD_POOL_EXECUTOR, (Void[])null); return true; case CLEAR_ID: