1. WakeLock
2. Window Flag
3. "Keep screen on when charging" setting
4. Code currently executing in a WakeLock protected callback (i.e.
Broadcast receivers "onReceive" method)
5. Other????

(I guess #2 and #3 probably keep a wakelock in the background)

Are there other ways of keeping the phone awake (in this case the
equivalent of a PARTIAL wake lock)?

My app only uses #1 above (WakeLock).  The app is compatible with
Android 1.5 and later.

On the G1, it worked fine with 1.1, 1.5, and still works fine with
1.6.
On the Droid (and other 2.x devices) it works fine.

However, on a number of 1.5 devices (seemingly all with the HTC Sense
UI) the phone just refuses to go to sleep when my app is running (per
above, the equivalent of my app holding a partial wakelock).

I saw a post from Diane a few days back and tried using "adb
bugreport" to get info on all running processes, as well as wakelock
info, etc.

The bugreport was useful in that it does seem to list WakeLocks, but
is it even possible to determine *which* wakelocks are currently in
the 'acquired' state? or... is there a better way?



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to