what you are exactly trying to do ... just turn dimm/on/off  display light
or you want to send the entire device to sleep ?

Best Regards,
  Dileep

On Thu, Jun 17, 2010 at 11:43 AM, Dianne Hackborn <hack...@android.com>wrote:

> Sorry, applications can't get this permission.  You should see a message in
> the log when installing the app that it wasn't granted.
>
>
> On Mon, Jun 7, 2010 at 4:08 AM, Nandan . <bhavesh2...@gmail.com> wrote:
>
>>
>> hii .....
>>
>> Currently i m facing a problem to switch off light in android application.
>> i m trying to power manager ---- gotosleep method but its giving a below
>> problem .
>>
>> *java.lang.RuntimeException: Unable to start activity
>> ComponentInfo{org.bhavesh/org.bhavesh.mainactivity}: *
>> *
>> *
>> *java.lang.SecurityException: Neither user 10024 nor current process has
>> android.permission.DEVICE_POWER.*
>>
>> but i already given  a android.permission.DEVICE_POWER in manifest file.
>>
>> can any one tell me why its happened in android. yaa any other method to
>> off the light in android..
>>
>> Thank you in advanced
>>
>> With Regrads
>> bhavesh
>>
>> --
>> 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<android-developers%2bunsubscr...@googlegroups.com>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
>
> --
>  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<android-developers%2bunsubscr...@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

Reply via email to