- 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:
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...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید