Any code hints for restarting your phone after an action?
Example: After the backup, I need the phone to reboot to finish the settings.
Any code hints for restarting your phone after an action?
Example: After the backup, I need the phone to reboot to finish the settings.
Place this permission on your manifest
<permission android:name="android.permission.REBOOT"/>
Run this code
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
pm.reboot(null);