PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WM] - How to put APK on diet?
[WM] - How to put APK on diet?
Iniciado por guest, 08,jul. 2016 15:37 - 4 respuestas
Publicado el 08,julio 2016 - 15:37
Hello,

On a mobile app that I am working on I have observed that the more I edit existing project its final compiled APK file size seems to increase drastically (from 4.5 MB to 18 MB). I don't understand as to why.

So I experimented by copying the whole project folder from its current folder to another folder.
Opened the project in WM and then changed its name, added a few controls to main window.
In compile wizard I changed the package id and APK name.

Final compiled APK size was 5 MB only!

Any ideas as to why this is happening and how can I get WM to put the finally compiled APK on a diet?

TIA

Yogi Yang
Publicado el 08,julio 2016 - 15:40
Hi,

Have you included the HFSQL lib into the exe, this makes it extra large when compiled. It is one of the options in the wizard for creating the APK.

Danny
Publicado el 11,julio 2016 - 08:35
Hello,

No I have not included the HFSQL library as we are using the default DB SQLite.

TIA

Yogi Yang
Publicado el 11,julio 2016 - 10:10
Hi Yogi Yang,

WM uses a temp-map for compilation and building the apk. Maybe it uses it as a cache too, to rebuild only part that have cahnged, I'm not sure.
But removing this map helped me in situations where the build process acually failed with some uncommon reasons.
On my machine it is called
c:\Users\Arie\AppData\Local\Temp\FRMK_Android_20.0.325.0US\

Try reomving such a map and rebuild the apk.
Publicado el 11,julio 2016 - 16:16
Thanks Arie.

This tip solved my problem!

Regards,

Yogi Yang