B4X FEED How to get FileProvider working without entire RuntimePermission lib or entire com.android.support:support-v4 ?

  • نویسنده موضوع نویسنده موضوع PracticalBot
  • تاریخ شروع تاریخ شروع

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

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: How to get FileProvider working without entire RuntimePermission lib or entire com.android.support:support-v4 ? است. این موضوع تا کنون 28 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع How to get FileProvider working without entire RuntimePermission lib or entire com.android.support:support-v4 ?
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
28
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
I need my app to be able to update itself, but also be as small as possible.

I also don't want my app to require permission to the user's storage/files, so I am using FileProvider.

The FileProvider class uses the function "GetSafeDirDefaultExternal" to get a directory that the shared file can be placed. This function is included in the RuntimePermission lib but including that lib adds 500k to my app. So, I found an alternative way to get that the same directory value using javaobject in this thread:

But it appears that in order to use the FileProvider class in needs some extra support class(es) that are also linked into the app when the RuntimePermission lib is an included lib, which again adds 500k to the app.

I was then able to eliminate the need for the RuntimePermission lib by including the below line:

B4X:

#AdditionalJar...



 

عقب
بالا