Suppose I used the action "Launch app" and launched a settings activity "
com.android.settings.Settings$TetherSettingsActivity" which opens my hotspot settings. After performing a "Control UI" action there, I want to close that window completely (it should not even appear in recent apps list).
How can I do this?
My phone: Asus Zenfone Max Pro M1
(no root)
Android 8.1 Stock ROM
Edit: Nevermind. I added following to my control UI script, and it works well.
Code: Select all
click("OFF");
sleep(3000);
recents();
sleep(3000);
click("Dismiss Settings Hotspot & tet*");
home();
If there is a better method please do share.