Hi Nandan,

  I think it's impossible to do...maybe it's possible on a rooted phone, but 
that's not what I'm after.  Maybe it will be possible in the future, with 
Gingerbread.  It appears to be something that only apps with Google's 
signature can access.

  On that quote you have from my previous message, I was just wondering if 
running the app from the emulator (rather that going through the normal 
install process) somehow was bypassing some important part of the the phones 
security process.  But, it's clear it isn't.  You are testing on a real phone 
and have the same issue.

Regards,

Richard

> hi Richard
> 
> i m running my application on device . any solution you find about this
> problem.
> i cant understand this line
> "   I'm wondering if you have to
> officially install the package to get it recognized by the emulator?   "
> 
> what this mean...
> 
> thank you
> With Regrads
> bhavesh
> 
> On Mon, Jun 14, 2010 at 6:09 AM, Richard Cox <[email protected]> wrote:
> > I'm having the same issue.  I made sure the permission was set as a child
> > of
> > the manifest element in the manifest file.  It always fails in the
> > emulator with the same security exception you have.  I'm wondering if
> > you have to officially install the package to get it recognized by the
> > emulator?  I just run
> > it from eclipse with the 'run as' command.
> > 
> > Also, does anybody know why the 'reboot' method in the PowerManager class
> > seems to be missing in 2.1?
> > 
> > Regards
> > 
> > Richard
> > 
> > > 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%2Bunsu
> > [email protected]> 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 [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