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

Discussion in 'B4J Questions' started by Mashiane, Jul 22, 2017.

  1. Mashiane

    Mashiane Expert Licensed User

    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.
  2. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed 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
    Mashiane likes this.
  3. Mashiane

    Mashiane Expert Licensed User

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


    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..

    Where ABMShared.OpenApp is...

    'open the app in a browser
    Sub OpenApp
    Dim robot As AWTRobot
    End Sub
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice