[android-developers] Re: Avoid phone locking

2009-05-22 Thread Dianne Hackborn
It is much better to set the window flag to keep the screen on. No need for a permission, and less likely or a bug in the app to cause problems. On Thu, May 21, 2009 at 10:54 PM, EboMike wrote: > > Make sure your app has the WAKE_LOCK permission, and use > PowerManager.WakeLock to keep the dev

[android-developers] Re: Avoid phone locking

2009-05-21 Thread EboMike
Make sure your app has the WAKE_LOCK permission, and use PowerManager.WakeLock to keep the device powered up. You'll find details in the docs. On May 21, 10:21 pm, iDeveloper wrote: > Hi > > I have a slideshow function in my app and if the number of images is   > more, the phone locks (screen go