Sorry for the delay, but just wanted to say thanks for this, it works great now using sl4a. I couldn't get Smanager to work (couldn't find it in 'run app shortcut', I looked all over the place but couldn't find it. Anyway, it's working now.
"When the current app is not (my dashcam app) wait 10...