How to Reboot android phone programitically? -
i trying reboot android device through activity.i m using following code.
public void reboot(){ powermanager pm=(powermanager)getsystemservice(context.power_service); pm.reboot(null) }
and have given manifest permission too.
android:name="android.permission.reboot
error::java.lang.securityexception: neither user 10098 nor current process has android.permission.reboot.
only applications signed system firmware signing key allowed these operations.
more information can found in links below
Comments
Post a Comment