PLEASE PLEASE don't use the power manager, if you are showing UI, just set the window flag to keep the screen on. Then you don't need to request a permission, and you can't have bugs in your app that cause the device to stay on when it shouldn't.
On Fri, Aug 21, 2009 at 11:17 AM, Mike Collins <[email protected]>wrote: > > Look at the PowerManager.WakeLock stuff. It works as advertised. > > mike > > > On Aug 21, 10:54 am, Mark Murphy <[email protected]> wrote: > > kaloer wrote: > > > Is it possible to prevent the menu lock while an application is > > > running? My application needs to be visible all the time it's running, > > > even though the user doesn't use it. > > > > If the user doesn't use it, why does it need to be visible? > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com| > http://twitter.com/commonsguy > > > > Need help for your Android OSS project?http://wiki.andmob.org/hado > > > -- Dianne Hackborn Android framework engineer [email protected] 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 [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 -~----------~----~----~----~------~----~------~--~---

