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: https://www.b4x.com/android/forum/t...-value-without-runtimepermissions-lib.144955/
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:
But this also adds like 500k to the app.
Then I found out that it seems the only class I really need to get fileprovider working is "android.support.v4.content.FileProvider".
So, is there a way that I can just include that single class without having to include the entire "com.android.support:support-v4" ?
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: https://www.b4x.com/android/forum/t...-value-without-runtimepermissions-lib.144955/
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: com.android.support:support-v4
But this also adds like 500k to the app.
Then I found out that it seems the only class I really need to get fileprovider working is "android.support.v4.content.FileProvider".
So, is there a way that I can just include that single class without having to include the entire "com.android.support:support-v4" ?
Last edited: