Reset Cell Phone

0

Any code hints for restarting your phone after an action?

Example: After the backup, I need the phone to reboot to finish the settings.

    
asked by anonymous 30.12.2015 / 17:07

1 answer

0

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);
    
22.01.2018 / 20:27