"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
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
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
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
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:
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
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"))
{
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
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
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
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
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
12 matches
Mail list logo