I'm trying to save an image on Android. But i get only the path '/mnt/sdcard/...'. I would like to save in a custom folder like '/Root/myapp/img.png'. but how?
This is what i do:
var f:File = File.documentsDirectory.resolvePath('imagem.png'); var bytes:ByteArray = new PNGEncoder().encode(ImageSnapshot.captureBitmapData(uiCanvas)); f.save(bytes, 'imagem.png');
But documentsDirectory or any other has the same effect.
I'm interested in this as well. Can anyone comment?