If File.Exists(File.DirInternal, "/Saved") = False Then
File.MakeDir (File.DirInternal, "/Saved")
End If
If File.Exists(File.DirInternal, "/Saved/LowJoe") = False Then
File.MakeDir (File.DirInternal, "/Saved/LowJoe")
End If
B4X:
If File.Exists(File.DirInternal & "/Saved/LowJoe", "LowJoe_Stats.txt") Then
List1 = File.ReadList(File.DirInternal & "/Saved/LowJoe", "LowJoe_Stats.txt")
Also, you probably should be using the RandomAccessFile library and the new(ish) WriteB4XObject/ReadB4XObject methods which are more robust than read/writelist and in addition support custom types.
Small clarification, you don't need to do anything special for your app to work on all Android versions including Android 7. Runtime permissions are only relevant if you decide to set android:targetSdkVersion to 23+.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.