I want to open a url in a browser from an Android app. Thats pretty straightforward: How can I open a URL in Android's web browser from my application?
But how can I open the url in a specific browser, if it exists.
if(user has chrome)
open url in chrome;
else if(user has opera)
open url in opera;
else
open url in default browser;
is this possible?
Generally speaking Tanis right, you shouldn’t do such things for Android.
However, if you really need to. You can use Intent.setPackage. This will send indent to appropriate application package.