I need to be able to programmically reboot an android device.
I found two solutions at stack overflow:
http://stackoverflow.com/questions/4966486/reboot-the-phone-on-a-button-click
But the above solution requires a "system" signing key.
Another solution looks doable, but I don't know how to convert to VB:
http://stackoverflow.com/questions/4580254/android-2-2-reboot-device-programmatically
Anyone know how to convert the above for use in B4A?
I found two solutions at stack overflow:
http://stackoverflow.com/questions/4966486/reboot-the-phone-on-a-button-click
But the above solution requires a "system" signing key.
Another solution looks doable, but I don't know how to convert to VB:
http://stackoverflow.com/questions/4580254/android-2-2-reboot-device-programmatically
B4X:
try {
Process proc = Runtime.getRuntime().exec(new String[] { "su", "-c", "reboot" });
proc.waitFor();
} catch (Exception ex) {
Log.i(TAG, "Could not reboot", ex);
}
Anyone know how to convert the above for use in B4A?