user2810895
user2810895

Reputation: 1364

Codename one open a file from filesystemstorage

How can I open a file that is saved with the FileSystemStorage? The app should use the build in features of the OS. So if it is an image open the OS image viewer, if the file is a PDF open the OS's pdf viewer.

Upvotes: 0

Views: 174

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

You should be able to use:

Display.getInstance().execute(fullPathToFile);

Although it might not work on all platforms.

Upvotes: 1

Related Questions