tags:

views:

90

answers:

2

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:

http://www.appsbeyond.com/apps/screen-suite

DVK
+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
Thanks--works great! Also need to add android.permission.WAKE_LOCK to manifest.
JackN