I believe PowerManager.goToSleep() should lock the device as part of putting it to sleep:
http://code.google.com/android/reference/android/os/PowerManager.html#goToSleep(long) On Oct 16, 9:51 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > hmm i wish there was a simple lockDevice() method :P > this is the last thing i need before i want to release my app. > it goes out for a closed beta on the 22nd. > > On Oct 17, 12:33 am, "shailesh prakash" <[EMAIL PROTECTED]> wrote: > > > Hey Mast3rpyr0, > > > I did try it earlier but drop in between. I had plans to do it like this, > > Send SMS, broadcast receiver will listen it and open msg read > > content match with data in SQLite database and change phone state > > accordingly. > > I implemented till the last and most tedious task, changing phone state. > > Hope it will help you in some extent > > > On Fri, Oct 17, 2008 at 9:56 AM, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > > > > Im working on a security app that allows a user to track their phone > > > on a web site if they lose the phone or it is stolen. I already have > > > the part working where i could do this if a user selected lock on the > > > site but once the device gets this data, how can i have the device go > > > into the locked state like if the end call button was pressed and ask > > > for the patern if the user set one up? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---