I want to create a directory ("calcul") in DirdefaultExternal (in Actvity_Create) :
If i install on Asus K011 (androîd 4.4.2) --> idir = true
With the same code on HUAWEI ALE-L21 (andrid 6.0) --> idir =false
If i try to write in the directory dircalc i have the error :
Thanks for any help
B4X:
If Not(File.Exists(File.DirDefaultExternal,"/calcul")) Then
File.MakeDir(File.DirDefaultExternal,"calcul")
End If
dircalc= File.DirDefaultExternal&"/calcul"
Dim idir As Boolean
idir=File.IsDirectory(File.DirDefaultExternal,"calcul")
Log("idir = " & idir)
If i install on Asus K011 (androîd 4.4.2) --> idir = true
With the same code on HUAWEI ALE-L21 (andrid 6.0) --> idir =false
If i try to write in the directory dircalc i have the error :
B4X:
java.io.FileNotFoundException: /storage/emulated/0/Android/data/mb.ncalc1/files/calcul/essaipoly.clc: open failed: ENOENT (No such file or directory)
Thanks for any help