I believe that Mark Murphy (and others, he is just who I remember answering this) details the things wrong with these sorts of things, but they basically boil down to: this is a hack (even catching the home key in the "old way" has been fixed on newer devices) and catching a broadcast intent and trying to lock the screen can be defeated by starting the phone in "safe mode" and unloading the app.
Kris On Sat, Dec 24, 2011 at 10:46 AM, Narendra Bagade <bagadenaren...@gmail.com> wrote: > invoke your launchor activity using broadcast for intent of reboot.... > > > On Fri, Dec 23, 2011 at 2:40 PM, Ali Chousein <ali.chous...@gmail.com> > wrote: >> >> Have a look at the intent actions and see if any, or a set of them >> will serve your purpose. >> http://developer.android.com/reference/android/content/Intent.html >> BTW, why are you trying to do this? Even though this feature is useful >> on desktops/laptops I doubt that it'll have any popularity on phones. >> In my humble opinion a phone is something more "personal" than a >> desktop/laptop and it's too way cumbersome to provide a password >> every time you wake it up. >> >> ------------------------------------------------- >> Ali Chousein >> Weather-Buddy >> http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy >> Geo-Filtered Assistant >> http://geo-filtered-assistant.blogspot.com >> https://marketplace.cisco.com/apphq/products/994 >> >> On Dec 22, 5:09 pm, 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 >> >> -- >> 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 > > > > > -- > Regards, > Narendra > . > > -- > 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 -- 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