Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

RadhaRavi Kiran
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!