scsjc Well-Known Member Licensed User Longtime User Apr 26, 2021 #1 I have received a message in the GooglePlay console warning me that they have detected the application with the requestLegacyExternalStorage in the manifest file. I currently have the manifest in android: targetSdkVersion=29 with the SetApplicationAttribute (android: requestLegacyExternalStorage, true) I use it so that my application can load documents externally (photos, pdf etc). Google indicates that I must fix it before May 5 or they request to withdraw application. It also indicates that if I need to use this permission I have to send a form requesting it. i read the : https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content I think the most correct solution is to remove: SetApplicationAttribute (android: requestLegacyExternalStorage, true) and use RuntimePermissions.GetSafeDirDefaultExternal ... for devices before 30 it will work as if I activate this solution: SetApplicationAttribute (android: requestLegacyExternalStorage, true) ??? I have searched the forum and I am not very clear what I should do. I do not know if it affects me having the targetSdkVersion=29 or I should change something. Last edited: Apr 26, 2021
I have received a message in the GooglePlay console warning me that they have detected the application with the requestLegacyExternalStorage in the manifest file. I currently have the manifest in android: targetSdkVersion=29 with the SetApplicationAttribute (android: requestLegacyExternalStorage, true) I use it so that my application can load documents externally (photos, pdf etc). Google indicates that I must fix it before May 5 or they request to withdraw application. It also indicates that if I need to use this permission I have to send a form requesting it. i read the : https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content I think the most correct solution is to remove: SetApplicationAttribute (android: requestLegacyExternalStorage, true) and use RuntimePermissions.GetSafeDirDefaultExternal ... for devices before 30 it will work as if I activate this solution: SetApplicationAttribute (android: requestLegacyExternalStorage, true) ??? I have searched the forum and I am not very clear what I should do. I do not know if it affects me having the targetSdkVersion=29 or I should change something.
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2021 #2 This means that you can no longer directly access File.DirRootExternal. Possible workarounds: https://www.b4x.com/android/forum/threads/saveas-let-the-user-select-a-target-folder.129897/#content Upvote 0
This means that you can no longer directly access File.DirRootExternal. Possible workarounds: https://www.b4x.com/android/forum/threads/saveas-let-the-user-select-a-target-folder.129897/#content
scsjc Well-Known Member Licensed User Longtime User Apr 26, 2021 #3 Erel said: This means that you can no longer directly access File.DirRootExternal. Possible workarounds: https://www.b4x.com/android/forum/threads/saveas-let-the-user-select-a-target-folder.129897/#content Click to expand... thanks Upvote 0
Erel said: This means that you can no longer directly access File.DirRootExternal. Possible workarounds: https://www.b4x.com/android/forum/threads/saveas-let-the-user-select-a-target-folder.129897/#content Click to expand... thanks
scsjc Well-Known Member Licensed User Longtime User Apr 26, 2021 #4 Erel said: This means that you can no longer directly access File.DirRootExternal. Possible workarounds: https://www.b4x.com/android/forum/threads/saveas-let-the-user-select-a-target-folder.129897/#content Click to expand... this method is required only to save? or load too? Upvote 0
Erel said: This means that you can no longer directly access File.DirRootExternal. Possible workarounds: https://www.b4x.com/android/forum/threads/saveas-let-the-user-select-a-target-folder.129897/#content Click to expand... this method is required only to save? or load too?
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2021 #5 It explains the usage of ContentChooser and ExternalStorage. You can use them to select resources. Upvote 0