hmm that didnt seem to work right, i ran using the debugger and it did
infact run the method but nothing; heres what i got:
final PowerManager pm = (PowerManager)
getSystemService(Context.POWER_SERVICE);
...
if(lock.equals("lock"))
{
pm.goToSleep(10000);
}
On Oct 17, 2:53 am, "shailesh prakash" <[EMAIL PROTECTED]> wrote:
> Sure it does, but if your phone is stolen then it should wake up in
> password lock mode and ack should send to alternative number or mail
> with gps location and cell ID(network operator's cell).
>
> On Fri, Oct 17, 2008 at 11:34 AM, hackbod <[EMAIL PROTECTED]> wrote:
>
> > 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...)
>
> > 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 [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
-~----------~----~----~----~------~----~------~--~---