B4X FEED TargerSDK 29 (Android 10.0) - Suggestion about show files in Gallery and File Provider??

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: TargerSDK 29 (Android 10.0) - Suggestion about show files in Gallery and File Provider?? است. این موضوع تا کنون 79 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع TargerSDK 29 (Android 10.0) - Suggestion about show files in Gallery and File Provider??
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
79
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
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:

Public Sub...


 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا