Reputation: 671
Writing JavaFX applications for Android, using GraalVM and gluon-maven-plugin:
I am trying to open a file system location using Gluon Attach (4.0.17-SNAPSHOT) BrowserService
with a file:
URL. That works fine on desktop systems, but fails on Android (13)
java.io.IOException: Error launching url file:/storage/emulated/0/Documents/CommLink6/logs
at com.gluonhq.attach.browser.impl.AndroidBrowserService.launchExternalBrowser(AndroidBrowserService.java:57)
at de.rpgframework.eden.client.jfx.EdenClientApplication.lambda$openFile$10(EdenClientApplication.java:799)
I tried file:/
and file:///
Judging from the source code it fails in a native function.
Either I am doing something wrong with the file-URL or the BrowserService is not a good choice to open file locations - but I am not aware of another options that works platform independently.
Can anyone help?
Upvotes: 0
Views: 116