android - Find out which browsers are installed? -


i'm looking way find out browsers installed on android smartphone , package names.

why need it?

well basically, app reacts on urls, i.e. http://bit.ly, when click such choice in app open it. far working intended.

if user sets app default kind of links, open in 1 without further asking user. far too. doing this, unable open links in browser.

so need way send intent directly browser, have know app user has set default http/https scheme example (as user can change if there more 1 browser installed).

sending intend

intent.setcomponent(new componentname("com.android.browser", "com.android.browser.browseractivity")); 

should't problem think. problem is, can't send standard intent für urls, because app catch again if set default user.

should't problem think

hardwiring in package , class names of code not yours always problem.

so need way send intent directly browser, have know app user has set default http/https scheme example (as user can change if there more 1 browser installed).

use packagemanager , queryintentactivityoptions() filter activity out , list of other activities user can choose from.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -