Android Question Open Url

fishwolf

Well-Known Member
Licensed User
Longtime User
I use this code for open a orl with browser

B4X:
Dim i As Intent
     i.Initialize(i.ACTION_VIEW, Url)
     StartActivity(i)

this code open the default browser, i have also chrome.

can i choise the application (browser) for open the url?
i want see android that ask me the browser choise?

Thanks
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
You probably have a Default action set for Chrome. Take a look at the Android \Apps then Chrome and press the "Clear defaults"
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i want see android that ask me the browser choise?
check your settings. I guess you already answered this question and set the browser.
Remove the standardsetting and call it again to be asked again
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
but is it possible set default browser or browser choise from application?

i would open default browser for some urls and open the choise browser for other urls
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
but is it possible set default browser or browser choise from application?
Nope. The User is the only one to have the choice.

i would open default browser for some urls and open the choise browser for other urls
So you would probably have to use the package manager to check if any package is installed and send the intent to it ? In the example you provided, you tell the system to open the url with the default browser
 
Upvote 0
Top