R rworner Member Licensed User Longtime User Jul 24, 2013 #1 I am trying to programmatically reboot an Android mini pc. I am using the device to display dynamic webpages using webviews. Every now and then the system gets out of sync. I end up having to unplug and then replug the device to get it to recover. I want to set the device up to reboot once a day. Other discussions involved root access on phones. That is not an issue here. Thanks
I am trying to programmatically reboot an Android mini pc. I am using the device to display dynamic webpages using webviews. Every now and then the system gets out of sync. I end up having to unplug and then replug the device to get it to recover. I want to set the device up to reboot once a day. Other discussions involved root access on phones. That is not an issue here. Thanks
NJDude Expert Licensed User Longtime User Jul 24, 2013 #2 Take a look at THIS library, it might help. Upvote 0
R rworner Member Licensed User Longtime User Jul 24, 2013 #3 NJDude said: Take a look at THIS library, it might help. Click to expand... I tried: Dim OS As OperatingSystem OS.Initialize("OS") OS.reboot(Null) And got an error message - "Neither user 10108 nor current process has android.permission.REBOOT" So I added this line to the manifest: <uses-permission android:name="android.permission.REBOOT"/> when I reran it I got the same message. Upvote 0
NJDude said: Take a look at THIS library, it might help. Click to expand... I tried: Dim OS As OperatingSystem OS.Initialize("OS") OS.reboot(Null) And got an error message - "Neither user 10108 nor current process has android.permission.REBOOT" So I added this line to the manifest: <uses-permission android:name="android.permission.REBOOT"/> when I reran it I got the same message.
NJDude Expert Licensed User Longtime User Jul 24, 2013 #4 As far as I know, only system apps can reboot the device, if your device is rooted, it might work. Upvote 0