which is better to save files: File.DirRootExternal or File.DirDefaultExtern or ...
i want to save my image which is taken by camex and this is my code:
it works on most of phones but some phones like xperia ion and android 4 has the following error:
i want to save my image which is taken by camex and this is my code:
B4X:
Dim filename,path As String
path = File.DirRootExternal
filename="TEST.JPG"
Dim out As OutputStream
out = File.OpenOutput(path, filename, False)
out.WriteBytes(Data, 0, Data.Length)
out.Close
it works on most of phones but some phones like xperia ion and android 4 has the following error:
B4X:
An error has occurred in
sub: preview_activity_resume (java line:272)
java.io.FileNotFoundException:/mnt/sdcard/DCIM/Camera/
TEST.JPG: open failed: ENOENT (NO such file or directory)
Last edited: