This app needs the device (and its display) to stay awake between onPreExecute() and onPostExecute().
+1
A:
It's definitely possible - here's an example of an app which does that:
DVK
2010-09-07 16:28:03
+3
A:
Use a "full" PowerManager.WakeLock
like in this post.
eg:
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "My Tag");
wl.acquire();
Make sure to release it when done.
iPaulPro
2010-09-07 16:34:35
Thanks--works great! Also need to add android.permission.WAKE_LOCK to manifest.
JackN
2010-09-07 18:41:06