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 . <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [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

Reply via email to