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??
switch running apps with a single button press
Moderator: Martin
Re: switch running apps with a single button press
For the button, create a widget, use action click - action Control UI. At the control UI simply use
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.
Code: Select all
recents();
sleep(100);
recents();
To show the widget, you need to create a flow with shortcut trigger, action Show Custom Widget Overlay, and another shortcut to Hide it.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.