[android-developers] Re: possible to lock device?

2008-11-15 Thread forrestxu
"android.permission.BRICK" does not work. Any help? --~--~-~--~~~---~--~~ 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 f

[android-developers] Re: possible to lock device?

2008-11-04 Thread j
What about: "android.permission.BRICK" On Oct 19, 11:10 am, hackbod <[EMAIL PROTECTED]> wrote: > Whoops, I just looked and this permission is not available to > applications.  Sorry, it isn't possible for apps to do this. > > On Oct 18, 1:43 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > > > i added

[android-developers] Re: possible to lock device?

2008-10-19 Thread hackbod
Whoops, I just looked and this permission is not available to applications. Sorry, it isn't possible for apps to do this. On Oct 18, 1:43 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > i added device_power but doesnt seem to do anything. > > On Oct 18, 8:01 am, e <[EMAIL PROTECTED]> wrote: > > > im

[android-developers] Re: possible to lock device?

2008-10-18 Thread Mast3rpyr0
i added device_power but doesnt seem to do anything. On Oct 18, 8:01 am, e <[EMAIL PROTECTED]> wrote: > im have error > > 10-18 17:27:58.569: ERROR/AndroidRuntime(204): Uncaught handler: > thread main exiting due to uncaught exception > 10-18 17:27:58.581: ERROR/AndroidRuntime(204): > java.lang.S

[android-developers] Re: possible to lock device?

2008-10-18 Thread e
im have error 10-18 17:27:58.569: ERROR/AndroidRuntime(204): Uncaught handler: thread main exiting due to uncaught exception 10-18 17:27:58.581: ERROR/AndroidRuntime(204): java.lang.SecurityException: Neither user 10017 nor current process has android.permission.DEVICE_POWER. 10-18 17:27:58.581:

[android-developers] Re: possible to lock device?

2008-10-17 Thread hackbod
Take a look in the log and see if there is an error message about not having a permission; I would assume that there is a permission needed to do this. On Oct 17, 7:59 pm, Mast3rpyr0 <[EMAIL PROTECTED]> wrote: > hmm that didnt seem to work right, i ran using the debugger and it did > infact run t

[android-developers] Re: possible to lock device?

2008-10-17 Thread Mast3rpyr0
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")) {

[android-developers] Re: possible to lock device?

2008-10-16 Thread shailesh prakash
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.goToSle

[android-developers] Re: possible to lock device?

2008-10-16 Thread hackbod
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

[android-developers] Re: possible to lock device?

2008-10-16 Thread shailesh prakash
Best of luck for your beta On Fri, Oct 17, 2008 at 10:21 AM, 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, "shail

[android-developers] Re: possible to lock device?

2008-10-16 Thread Mast3rpyr0
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 p

[android-developers] Re: possible to lock device?

2008-10-16 Thread shailesh prakash
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 ph