Hello,
I would use a
Sticky Service running in the background.
#StartCommandReturnValue: android.app.Service.START_STICKY
Your service would have to be set to this.
Once your service has started you will need to have in
Sub Service_Start
StartServiceAt and set DuringSleep to
True. I personally do not use Timers for long running tasks as I find them too unreliable. Your StartServiceAt will probably look something like this.
StartServiceAt(Null, DateTime.TicksPerSecond, True) 'Restart the service every 60 seconds. I personally restart every minute on the dot.
You also ask the following, but you do not state how often you want to check in between 07:00AM an 23:00PM. Every x (how often)?
execute command from Mon-Sat from 07:00AM till 23:00PM