Douglas Farias Expert Licensed User Longtime User Aug 23, 2015 #1 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?
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?
R Roycefer Well-Known Member Licensed User Longtime User Aug 23, 2015 #2 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
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")
Douglas Farias Expert Licensed User Longtime User Aug 23, 2015 #3 Thx man, i never see this comand ShowExternalDocument the name its strange for browser function. thx again Upvote 0
Thx man, i never see this comand ShowExternalDocument the name its strange for browser function. thx again
R Roycefer Well-Known Member Licensed User Longtime User Aug 23, 2015 #4 It's not just for browser functions. It will open any external file with the system's default application for that file type. jAWTRobot's B4X: robot.SystemOpenExternalFile(File.Combine(File.DirApp, "hello.txt")) will do the same in non-UI apps. Upvote 0
It's not just for browser functions. It will open any external file with the system's default application for that file type. jAWTRobot's B4X: robot.SystemOpenExternalFile(File.Combine(File.DirApp, "hello.txt")) will do the same in non-UI apps.