W wheretheidivides Active Member Licensed User Longtime User Apr 30, 2017 #1 . Last edited: May 24, 2020
R ronell Well-Known Member Licensed User Longtime User Apr 30, 2017 #2 Code: 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 Code: If File.Exists(File.DirInternal & "/Saved/LowJoe", "LowJoe_Stats.txt") Then List1 = File.ReadList(File.DirInternal & "/Saved/LowJoe", "LowJoe_Stats.txt") Upvote 0
Code: 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 Code: If File.Exists(File.DirInternal & "/Saved/LowJoe", "LowJoe_Stats.txt") Then List1 = File.ReadList(File.DirInternal & "/Saved/LowJoe", "LowJoe_Stats.txt")
Jeffrey Cameron Well-Known Member Licensed User Longtime User May 1, 2017 #3 If you are targeting SDK API 23 or above, you will need to use the new runtime permissions (specifically the RuntimePermissions.GetSafeDirDefaultExternal("") method): https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content 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. Upvote 0
If you are targeting SDK API 23 or above, you will need to use the new runtime permissions (specifically the RuntimePermissions.GetSafeDirDefaultExternal("") method): https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/#content 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.
Erel B4X founder Staff member Licensed User Longtime User May 2, 2017 #4 Jeffrey Cameron said: If you are targeting SDK API 23 or above Click to expand... 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+. Upvote 0
Jeffrey Cameron said: If you are targeting SDK API 23 or above Click to expand... 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+.