Hi
Search for an action to close the browser window on a Android phone.
Found the action "open url in browser", but how can I close it? Note, really close, not only set browser in background through click on home button.
Thank you for the help
Stefan
Howto close browser
Moderator: Martin
Re: Howto close browser
If you're looking to close an app completely, the "Kill App Process" action should work. It exits you out of the app, and also kills any background services/cached processes. However, it does require root.
In the action, select your browser app for the Package Name and "TERM (15)" for the Signal options.
In the action, select your browser app for the Package Name and "TERM (15)" for the Signal options.
Last edited by Pepy on 01 Jun 2019 22:54, edited 1 time in total.
Hope my post was helpful
Device: OnePlus 5T running crDroid, rooted with Magisk
Device: OnePlus 5T running crDroid, rooted with Magisk
Re: Howto close browser
I don't know with other browser, but for chrome you can use Ctrl+W to close only single tab (the tab on focus). To do this, you have to use Automagic keyboard and Control UI. Depends on your root status, you can change the default keyboard to Automagic keyboard, do the control UI and switch back to default keyboard. The Control UI script is simply :
Code: Select all
sendKey("W", "CTRL_ON");
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.
Re: Howto close browser
@Desmanto, wait... aren't those shortcuts you'd use on PC browsers? Do they really work on mobile as well?
If so, ctrl + shift + W might be more suitable as it closes the entire window perhaps? Maybe if he's using Firefox, ctrl + shift + q might be what the OP is looking for.
If so, ctrl + shift + W might be more suitable as it closes the entire window perhaps? Maybe if he's using Firefox, ctrl + shift + q might be what the OP is looking for.
Last edited by Pepy on 01 Jun 2019 23:00, edited 1 time in total.
Hope my post was helpful
Device: OnePlus 5T running crDroid, rooted with Magisk
Device: OnePlus 5T running crDroid, rooted with Magisk
Re: Howto close browser
Some works, but a lot don't work at all. Fortunately close tab works. I find the list from here : https://groups.google.com/forum/#!topic ... piX5wzrKKQ
CTRL+SHIFT+W doesn't work unfortunately. It is limited to android keyboard shortcut too.
CTRL+SHIFT+W doesn't work unfortunately. It is limited to android keyboard shortcut too.
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.
Re: Howto close browser
@Desmanto, interesting... I never knew that Android had keyboard shortcuts. Perhaps they're meant to be used with phones that have physical navigation keys or keyboards and not virtual ones, since nowadays phones don't come with a menu key.
I also saw another thread earlier today about the text selection shortcut (shift + D-pad) not working as well. Maybe it has something to do with the implantation of the app's keyboard but that's just a guess.
I also saw another thread earlier today about the text selection shortcut (shift + D-pad) not working as well. Maybe it has something to do with the implantation of the app's keyboard but that's just a guess.
Last edited by Pepy on 01 Jun 2019 23:06, edited 2 times in total.
Hope my post was helpful
Device: OnePlus 5T running crDroid, rooted with Magisk
Device: OnePlus 5T running crDroid, rooted with Magisk
Re: Howto close browser
it can also be done without root using Set System Setting and adb permission.
it has been fixed on 1.38 EAP build.
Re: Howto close browser
@anuraag, good to know! Thanks for the info!
Hope my post was helpful
Device: OnePlus 5T running crDroid, rooted with Magisk
Device: OnePlus 5T running crDroid, rooted with Magisk