Android Question Duplicate declarations of permission android permission write_external_storage

dieterp

Active Member
Licensed User
Longtime User
Following on from this link https://www.b4x.com/android/forum/t...roid-permission-write_external_storage.72435/, I encountered the same issue when uploading my apk and also resolved it the same way as in the post. I'd like to know if this is the actual solution though (removing the code below)? Will users running sdk < 18 still be able to use the app if we remove that code from the manifest?
B4X:
'AddManifestText(
'<uses-permission
'  android:name="android.permission.WRITE_EXTERNAL_STORAGE"
'  android:maxSdkVersion="18" />
')
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'd like to know if this is the actual solution though (removing the code below)?
Yes.

The purpose of the version based permission is to avoid adding the permission to Android 5+ devices. In this case you are adding it to all versions so you need to remove the version specific declaration.
 
Upvote 0
Top