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 <ebom...@gmail.com> wrote: > > 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 <ideveloper...@gmail.com> wrote: > > Hi > > > > I have a slideshow function in my app and if the number of images is > > more, the phone locks (screen goes black) in the middle of the > > slideshow. > > How can I avoid this in my app? > > > > Thanks. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---