Is there any way to find out which browser is set as a default browser on android device? On android device there may be multiple browsers installed but out of which only one set as a default. I need to find it out programmatically.
Thanks in advance. Early response is appreciated..
You are welcome to use
PackageManager
andresolveActivity()
to attempt to determine what activity (in what app) will handle a particularIntent
. However, this may indicate that the chooser will handle the request, because there is no current default (e.g., user just installed a new browser, and so the chooser will appear for the next Web browser request).This code may help you:
and if wanna start it, do as follows: