- Jun 6, 2020
- 11,517
- 4,383
Since 8/2020 any new apps must set target SDK to 29, many changes Android developer need update, short solution is use
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
but this is not good solution because in SDK 30 , this attribute will be bypass and will be error!!!
These are some issues i met when update app to targetSDK 29:
1. With old target SDK <29 we can use this code to add file to gallery
But with new target SDK , this code can not work
(You can try with target SDK =29 and use file-provider
I search on Stackoverflow , their solution here :
How can we implement this code to B4A?
2. And about File-provider
B4X:
SetApplicationAttribute(android:requestLegacyExternalStorage, true)
but this is not good solution because in SDK 30 , this attribute will be bypass and will be error!!!
These are some issues i met when update app to targetSDK 29:
1. With old target SDK <29 we can use this code to add file to gallery
برای دیدن لینک ها باید ثبت نام کنید
But with new target SDK , this code can not work
(You can try with target SDK =29 and use file-provider
برای دیدن لینک ها باید ثبت نام کنید
)I search on Stackoverflow , their solution here :
برای دیدن لینک ها باید ثبت نام کنید
How can we implement this code to B4A?
2. And about File-provider
B4X:
Public Sub...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید