Android Question Folder Creation

Vellad

Member
Licensed User
Longtime User
I got the following error messages when i tried my Notes on a samsung A30. It work fine with my Device, a Vivo , lolipop.

Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
If FirstTime And File.Exists(PadDir, "*.*") = False Then
File.MakeDir(File.DirRootExternal, "SalimsNote")
End If
End Sub

Sub btnLoad_Click
FileList = File.ListFiles(PadDir)
End Sub

An error has occurred in
sub:main_btnLoad_click(javaline:698)
java.io.IOException:/storage/emulated/0/SalimsNote is not a folder. Continue? NO/YES

Sub btnSave_Click
File.WriteString(PadDir, PadFileName, edtPad.Text)
End Sub

An error has occurred in
sub:main_btnSave_click(javaline:510)
java.io.FileNotFoundException:/storage/emulated/0/SalimsNote/enik.txt:eek:pen failed:EACCES(Permissiondenied) Continue? NO/YES
 

agraham

Expert
Licensed User
Longtime User
failed:EACCES(Permissiondenied)
As it says - permission denied. Looks like you may be targeting SDK 23 or higher.
 
Upvote 0
Top