On Thu, Dec 22, 2011 at 11:09 AM, poiuytrez <guillaumechar...@gmail.com> wrote: > Hello, > > I have some experience in Android development but this time I would like to > create some kind of password app. Basically I need to show the app when the > user clicks on the power button. Do you have any idea where should I begin ? > I tried to browse the documentation but I could not find any example. > > Thank you > > poiuytrez >
Nope, this is impossible. You can possibly (?) catch the power key when the user is using your app, but outside of it this is impossible.. http://stackoverflow.com/questions/3703071/how-to-hook-into-the-power-button-in-android You could try that, but it's still not going to let you get key presses when the user is outside your app Kris -- 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