Here is the code i have used to control the wake state, look at
PowerManager in the reference for all the flags.
// Use the power manager to make sure the CPU doesnt
stop
// so we will always catch the alerts
mPm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "MGS");
mWl.acquire();
regards, Liam
On 19 July, 10:43, bardshen <[email protected]> wrote:
> Dear All:
> Would you please give me some tips to disable the Android enter into
> sleepstate?
> If so, it will be very available for me to debug it
> If any tips will be great appreciated!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---