Mashiane Expert Licensed User Longtime User Jul 22, 2017 #1 Hi there I cant seem to be able to execute fx.ShowExternalDocument in my ABMaterial App? It's returning a NullPointerException. Is this perhaps locked in some way by the IDE or? Any advise will do, thanks.
Hi there I cant seem to be able to execute fx.ShowExternalDocument in my ABMaterial App? It's returning a NullPointerException. Is this perhaps locked in some way by the IDE or? Any advise will do, thanks.
EnriqueGonzalez Well-Known Member Licensed User Longtime User Jul 23, 2017 #2 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
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
Mashiane Expert Licensed User Longtime User Jul 24, 2017 #3 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
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