Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to shut down / reboot android phone from an application?

 
RadhaRavi Kiran
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,

I am a newbie to android, i am writing an application to install an application, which after installation needs a reboot of the device.

but when i am sending a broadcast with ACTION_REBOOT, i am getting a SecurityException : Permission Denial : ---- pid: xxx uid: xxx.

I have mentioned uses-permission for REBOOT in the Manifest file.

If anybody have an idea, Please let me know.

Thanks
Kiran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic