On 15 June 2010 16:58, Justin Anderson <janderson....@gmail.com> wrote: > I don't an SDK application can do this. AFAIK you need to have your > application signed by Google to do something like this... but, good luck > getting them to do that for you... > > > ---------------------------------------------------------------------- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------------------------------------------------------------------- > > > On Mon, Jun 7, 2010 at 5:47 AM, bangaram <kanakava...@gmail.com> wrote: >> >> Hi all, >> >> Could you please give me an idea about to implement reboot/shutdown >> the device through code. I am using Android 2.1 open source sdk (API >> Level 7). 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. >> >> Thanks. >>
>From http://developer.android.com/reference/android/content/Intent.html public static final String ACTION_REBOOT Since: API Level 1 Broadcast Action: Have the device reboot. This is only for use by system code. This is a protected intent that can only be sent by the system. Constant Value: "android.intent.action.REBOOT" Dan -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en