Hi,
I'm trying to have the phone rebooted once a button is pressed.
Currently I'm doing something like this:
// _power is the button instance
_power.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent service = new Intent();
service.setAction(Intent.ACTION_REBOOT);
startService(service);
}
});
However, it does not seem to work.
Please help, thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---