S Scantech Well-Known Member Licensed User Longtime User Apr 17, 2021 #1 B4X: AddManifestText( <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="19" /> ) My app manifest is android:minSdkVersion="21" and I am using GetSafeDirDefaultExternal. Do I really need the above code in my manifest?
B4X: AddManifestText( <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="19" /> ) My app manifest is android:minSdkVersion="21" and I am using GetSafeDirDefaultExternal. Do I really need the above code in my manifest?
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Apr 17, 2021 #2 Yes, you need it: The explanation for this is that GetSafeDirDefaultExternal doesn't require any permission on Android 4.4+ (API 19) and requires the WRITE_EXTERNAL_STORAGE on older versions. The code above adds the permission to older devices. Upvote 0
Yes, you need it: The explanation for this is that GetSafeDirDefaultExternal doesn't require any permission on Android 4.4+ (API 19) and requires the WRITE_EXTERNAL_STORAGE on older versions. The code above adds the permission to older devices.
Erel B4X founder Staff member Licensed User Longtime User Apr 18, 2021 #3 Scantech said: Do I really need the above code in my manifest? Click to expand... No. It has no effect on API 20+ (Android 5+), which is above the minimum version you (correctly) set. Upvote 0
Scantech said: Do I really need the above code in my manifest? Click to expand... No. It has no effect on API 20+ (Android 5+), which is above the minimum version you (correctly) set.