Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] BrowserShortcut - Use the browser key to open any browser

OP bit2shift

7th May 2014, 02:39 AM   |  #1  
bit2shift's Avatar
OP Junior Member
Flag Figueira da Foz
Thanks Meter: 0
 
5 posts
Join Date:Joined: Feb 2013
More
Hi everyone!
For those of you who want to give some extra behaviour to the browser key on the dock, here's one solution.
Although mod Aroma "kind of" does this, it should be noted that this solution is easier to recover from.

The browser key launchs any apk with ˋcom.android.browser.BrowserActivity´ as main activity, so I made a small app that mimics that.
It gathers a list of installed browsers and prompts a choice to the user; With the help of intents.

You can build it directly within the prime using AIDE, as it was coded in it.
GitHub repository: github.com/bit2shift/BrowserShortcut

In order to install it, you first need to remove the stock browser. Use Titanium Backup or ES File Explorer.
Install the replacement app as usually.

A screenshot of its choice prompt is attached.

EDIT: The google homepage is the URL used to query the installed browsers and start the chosen one. You can change it to something else.
TIP: For some browsers, about:blank does not get recognized properly.

Moderators: If this thread fits better on the development board, feel free to move it there.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-04-05-22-22-24.jpg
Views:	32
Size:	67.8 KB
ID:	2729866  
Last edited by bit2shift; 7th May 2014 at 12:12 PM. Reason: Minor details
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes