B4J Question [ABMaterial]: [SOLVED] Can't execute fx.ShowExternalDocument in my app

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
FX is not available in non ui projects such as abmaterial.

And... If you are trying for the user to open a document then, he should donwload it first. Browser has the last word on how to handle the document
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Purpose: I wanted to start my ABMaterial webapp directly within the app buy just running the jar file.

Solution
:

1. Download the lovely robot library here... https://www.b4x.com/android/forum/threads/jawtrobot-invoke-keyboard-and-mouse-events-etc.55832/
2. Add this line just before myapp.StartServer..

B4X:
ABMShared.OpenApp

Where ABMShared.OpenApp is...

B4X:
'open the app in a browser
Sub OpenApp
    Dim robot As AWTRobot
    robot.SystemOpenAddressInBrowser("http://localhost:51048/uxwebhu")
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…