Android Question hi, restart android

ivanomonti

Expert
Licensed User
Longtime User
hello guys, I need a hand to my phone has no keyboard and restart working on ... how you can create a command that let me restart the phone ... as a restart !!
 

ivanomonti

Expert
Licensed User
Longtime User
Have a look here...

specci48

B4X:
    Private p As Phone
    Private Out, Err As StringBuilder
           
    Out.Initialize
    Err.Initialize
  
    File.WriteString(File.DirInternal, "reboot.sh", "su -c reboot")

    p.Shell("sh", Array As String(File.Combine(File.DirInternal, "reboot.sh")), Out, Err)

not result :-( not reboot, null
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top