B4J Question Open URL with defaut browser

Douglas Farias

Expert
Licensed User
Longtime User
How can i open a especific url on a defaut browser?
for example if user use google chrome, open on the url on the chrome
if use firefox by default , open a url in firefox.

how can i make this like the b4a?
 

Roycefer

Well-Known Member
Licensed User
Longtime User
If you are creating a UI app, use:
B4X:
fx.ShowExternalDocument("http://buttdroid.itch.io/unreal-tournament-2004-cache-extractor")

If you are creating a non-UI app, you have to use the jAWTRobot library and call
B4X:
robot.SystemOpenAddressInBrowser("http://buttdroid.itch.io/unreal-tournament-2004-cache-extractor")
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Thx man, i never see this comand
ShowExternalDocument
the name its strange for browser function.

thx again
 
Upvote 0
Top