Hi all,
today I recompiled an old project of mine used as a family tracker based on GPS. No problem about the code, but when I was going to upload it to the server used for distribution I noticed that its apk file size grew from 182KB to 1MB. A bit too much, I think.
B4A 8.00
Libraries used:
Core (8.0)
dgUID (0.20)
GPS (1.20)
OkHttpUtils (2.61)
Phone (2.43)
RandomAccessFile (2.32)
RuntimePermissions (1.10)
As you can see the only non-standard lib is my own dgUID but it was part of the previous version too.
I would say that the only "new entry" is Runtime Permissions but it couldn't be alone the cause of the whopping increment I noticed.
I tend to believe that the main cause is some kind of implicit compatibility code added by compiler/linker, but the only way to know it for sure is to ask here. TIA.
today I recompiled an old project of mine used as a family tracker based on GPS. No problem about the code, but when I was going to upload it to the server used for distribution I noticed that its apk file size grew from 182KB to 1MB. A bit too much, I think.
B4A 8.00
Libraries used:
Core (8.0)
dgUID (0.20)
GPS (1.20)
OkHttpUtils (2.61)
Phone (2.43)
RandomAccessFile (2.32)
RuntimePermissions (1.10)
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
CreateResourceFromFile(Macro, Themes.LightTheme) 'or Themes.DarkTheme
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
CreateResourceFromFile(Macro, Themes.LightTheme) 'or Themes.DarkTheme
AddManifestText(<uses-feature android:name="android.hardware.location.gps"/>)
I would say that the only "new entry" is Runtime Permissions but it couldn't be alone the cause of the whopping increment I noticed.
I tend to believe that the main cause is some kind of implicit compatibility code added by compiler/linker, but the only way to know it for sure is to ask here. TIA.