Creating a Script for an Android Tablet I want to create a script that would close an app, then restart it twice each 24 hours and then automatically click on a few buttons to configure the app to the way it was previously.

Background: I use a tablet to monitor the live video from my security cameras with an app. The problem is that once or twice a day, the live video feeds lock up and do not update. Restarting the app fixes this.

Is there a way to do this?  Please note that I don't know anything about scripting or coding. I was hoping that there might be a simple app that would allow me to create a series of instructions that would activate x times per day -- or to know where to find someone who could create this for me.
Call Super User ( root access )     

  su    


change 1 second sleeper to 24hours     

 sleep 86400

  sleep 1
  sh /directory to this script/autoscript.sh   
  exit   


Close this script after opening another instance of it.
So all in one script it's 

  su   
  sleep 1
  sh /directory to this script/autoscript.sh    
  exit 


In this example,    

you would need to make this as a text document and save it as autoscript.sh 

Instead of autoscript.txt   

Now open Terminal Emulator and type 

sh storage/sdcard1/autoscript.sh


Terminal will auto start the script !