tchart Well-Known Member Licensed User Longtime User Nov 7, 2015 #1 Does anyone know how to programmatically open a hyperlink? I need to open the hyperlink in the default browser. An code snippets?
Does anyone know how to programmatically open a hyperlink? I need to open the hyperlink in the default browser. An code snippets?
R Roycefer Well-Known Member Licensed User Longtime User Nov 7, 2015 #2 If it's in a UI app, use B4X: fx.ShowExternalDocument("http://www.example.com") In a non-UI app, you won't have access to the fx Object so you'll need to use the jAWTRobot library and call B4X: robot.SystemOpenAddressInBrowser("http://www.example.com") Upvote 0
If it's in a UI app, use B4X: fx.ShowExternalDocument("http://www.example.com") In a non-UI app, you won't have access to the fx Object so you'll need to use the jAWTRobot library and call B4X: robot.SystemOpenAddressInBrowser("http://www.example.com")
ilan Expert Licensed User Longtime User Nov 7, 2015 #3 have you looked at this: https://www.b4x.com/android/forum/threads/open-external-documents.35046/#content Upvote 0
have you looked at this: https://www.b4x.com/android/forum/threads/open-external-documents.35046/#content
tchart Well-Known Member Licensed User Longtime User Nov 7, 2015 #4 Thanks Roycefer. I was trying showexternaldocument from my app which is non-ui and it wasnt working (now i know why). I'll try the other libray. Upvote 0
Thanks Roycefer. I was trying showexternaldocument from my app which is non-ui and it wasnt working (now i know why). I'll try the other libray.