If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator 
Device

I am trying to save the byte array as a file using below code.

FileSystemStorage fs = FileSystemStorage.getInstance();
        OutputStream os = fs.openOutputStream(fs.getAppHomePath() + 
"MyFileName.txt");
        os.write(myByteData);
        Util.cleanup(os);


I have tested this in android 7.0 and android 4.4.. 

In android 7.0, fs.getAppHomePath() returning path 
like file:///data/user/0/com.engravsystems.emqim/files/

In android 4.4, fs.getAppHomePath() returning path like 
file:///data/data/com.engravsystems.emqim/files/ 

and i am getting exception like "java.io.IOException: 
/com.engravsystems.emqim/files/MyFileName.pdf not found" in both devices.


Is there something I'm missing? 



-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/e6dc84ff-60ed-46cc-a963-459cb0450bc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to