• 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
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!