I have tried to use the function
SwingFXUtils.fromFXImage
which raises NoClassFoundError exception. How can i save an image otherwise on Gluon mobile?
I have tried to use the function
SwingFXUtils.fromFXImage
which raises NoClassFoundError exception. How can i save an image otherwise on Gluon mobile?
SwingFXUtils
nor any Swing related classes are supported on Android.Based on your comments, you are using Charm Down
PicturesService
to retrieve an image from the camera and show it on anImageView
control:And now you want to save that image into a private/public storage location on your device.
If you check the API for
takePhoto
, it has asavePhoto
argument, that you can use to save the picture:Now if you have a look at how this is implemented, you will find your pic under the external storage for pictures:
You can access that folder easily under
/sdcard/Pictures
.Also you can use
StorageService
andgetPublicStorage("Pictures")
, and going through the directory you can retrieve the last file added: