Howto close browser

Post your questions and help other users.

Moderator: Martin

Post Reply
stefanprivat
Posts: 24
Joined: 28 Jan 2019 12:42

Howto close browser

Post by stefanprivat » 20 May 2019 16:33

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

Pepy
Posts: 76
Joined: 31 Oct 2018 10:53
Location: Canada

Re: Howto close browser

Post by Pepy » 21 May 2019 00:24

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.
Last edited by Pepy on 01 Jun 2019 22:54, edited 1 time in total.
Hope my post was helpful :D
Device: OnePlus 5T running crDroid, rooted with Magisk 8-)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Howto close browser

Post by Desmanto » 25 May 2019 15:42

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.

Pepy
Posts: 76
Joined: 31 Oct 2018 10:53
Location: Canada

Re: Howto close browser

Post by Pepy » 25 May 2019 16:38

@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.
Last edited by Pepy on 01 Jun 2019 23:00, edited 1 time in total.
Hope my post was helpful :D
Device: OnePlus 5T running crDroid, rooted with Magisk 8-)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Howto close browser

Post by Desmanto » 25 May 2019 18:01

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.
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.

Pepy
Posts: 76
Joined: 31 Oct 2018 10:53
Location: Canada

Re: Howto close browser

Post by Pepy » 25 May 2019 19:06

@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.
Last edited by Pepy on 01 Jun 2019 23:06, edited 2 times in total.
Hope my post was helpful :D
Device: OnePlus 5T running crDroid, rooted with Magisk 8-)

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Howto close browser

Post by anuraag » 25 May 2019 23:21

Desmanto wrote:
25 May 2019 15:42
Depends on your root status, you can change the default keyboard to Automagic keyboard, do the control UI and switch back to default keyboard.
it can also be done without root using Set System Setting and adb permission.
Pepy wrote:
25 May 2019 19:06
I also saw another threadeearlier today about the text selection shortcut (shift + dpad) not working as well. Maybe it has soemthing to do with the implantation of the app's keyboard but that's just a guess.
it has been fixed on 1.38 EAP build.

Pepy
Posts: 76
Joined: 31 Oct 2018 10:53
Location: Canada

Re: Howto close browser

Post by Pepy » 30 May 2019 20:07

@anuraag, good to know! Thanks for the info! :D
Hope my post was helpful :D
Device: OnePlus 5T running crDroid, rooted with Magisk 8-)

Post Reply