Display.getInstance().execute(file) on PC in Simulator does not work

13 views
Skip to first unread message

Mark Bolduc

unread,
Jan 10, 2020, 1:37:49 PM1/10/20
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 11
Desktop OS Windows 10 Pro
Simulator Latest
Device PC In Simulator

Note this did work before (poss several months ago)

Display.getInstance().execute(pdf file) on PC in Simulator does not open files. (pdf,lpg, etc.)

This example is PDF.

            Display.getInstance().execute(A3MpiPhotosDir + fileName, e -> {
                MyLog.p("viewImageFromDisk: image length = " + image.length + " fileName = [" + fileName + "]");
            });

Works as expected on devices.

Thoughts?

Regards

Shai Almog

unread,
Jan 10, 2020, 11:18:01 PM1/10/20
to CodenameOne Discussions
I'm assuming there's nothing printed out to the console?
Did you update the OS/JVM?

We use the Java "Desktop" API to invoke these URLs. These APIs are pretty flaky e.g. they don't work on Linux but unfortunately there's nothing else we can use.

Mark Bolduc

unread,
Jan 11, 2020, 8:22:46 AM1/11/20
to CodenameOne Discussions
Understood.

Thanks.
Reply all
Reply to author
Forward
0 new messages