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

how compile android application system permissions

programmatically switching off android phone


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -