Can application initiate rebooting the phone?

Doing some thing like below doesn't seem to help  ..
Intent i = new Iintent();
i.setAction(Intent.ACTION_REBOOT);
sendBroadcast(i);

and having in the manifest ..
<uses-permission android:name="android.permission.REBOOT" />

gives the following the error in log cat
W/ActivityManager(   51): Permission Denial: broadcasting Intent
{ action=android.intent.action.REBOOT } from com.example.android
(pid=146, uid=10035) requires android.permission.REBOOT due to
registered receiver BroadcastFilter{433de720 ReceiverList{433e5e90 51
system/1000 client 433ece68}}

Looks like calling application needs to explicitly registered !! any
ideas how to proceed here ..


The next was to try ..
$ adb shell
# reboot

the emulator froze !!

-Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to