Page 1 of 1

switch running apps with a single button press

Posted: 27 Jan 2019 20:34
by boowho
I have two apps running on the phone. I'd like to have a button (always on top) that would toggle between the two apps (bring to front) each time the button is pressed.

Can this be done with Automagic?? Maybe using a SSH command??

Re: switch running apps with a single button press

Posted: 28 Jan 2019 18:00
by Desmanto
For the button, create a widget, use action click - action Control UI. At the control UI simply use

Code: Select all

recents(); 
sleep(100);
recents();
Pressing recent button twice usually will toggle between current app and previous app.

To show the widget, you need to create a flow with shortcut trigger, action Show Custom Widget Overlay, and another shortcut to Hide it.