Final space consumed by app on phone very big

41 views
Skip to first unread message

christian.ko...@googlemail.com

unread,
Apr 12, 2013, 1:49:30 PM4/12/13
to actionba...@googlegroups.com
Hi,

thanks a lot for ABS: I regard it as a big necessity. Now more than ever.

Some people have already asked [1,2] , but the I would like to take the chance to ask here in this group as the results are not satisfactory at all.

Adding ABS to my application [3] increased the space consumed of the application on the phone significantly.

I have already kicked out all the theme resources which I do not use, i.e. the light theme resources.

Space HTC Desire consumed on phone without data, phone only : 2,77 MB
Space HTC Desire consumed on phone without Data: moved 2 sd: 2,02 MB
Space HTC Desire consumed on phone without Data: moved 2 sd prior ABS: 0,8 MB

Is there anything else I can kick out of ABS?

According to me, the real problem is, that there are millions of excellent old phones out there without much space left to install new software.
A lot of (up-to-date)  fat system applications cannot be moved to the sd card without rooting.
People get the system message that there is no space left on the device all the time.
This is a waste of resources.

In my current release I still have old school non-fragment tabs and I am currently in the process of migrating to the fragement approach.
In other words: I am using and I am fond of the compatibility API.

Is there an easy maintainable way how I can kick out the unused parts parts of the compatibility API?
Any experience with that?

... maybe I missed something. I will read a bit more on proguard.

Regards and thx in advance
Christian

[1] https://github.com/JakeWharton/ActionBarSherlock/issues/404
[2] http://stackoverflow.com/questions/10873243/app-size-is-significally-bigger-than-expected
[3] https://play.google.com/store/apps/details?id=de.koelle.christian.trickytripper

Hugo Visser

unread,
Apr 13, 2013, 3:46:00 PM4/13/13
to actionba...@googlegroups.com
Your best bet would be using proguard, if you're not already using that. Proguard will analyze your application and library class files and remove (what it thinks to be) unused classes from the final jar. It's pretty common to use proguard for obfuscation and shrinking reasons for Android apps.

Hugo

christian.ko...@googlemail.com

unread,
Apr 18, 2013, 4:43:29 PM4/18/13
to actionba...@googlegroups.com
Yeah!

I applied proguard to my current release.

Without much tailoring and still in the process of testing I got

Space HTC Desire consumed on phone without data, phone only : 2,77 MB > 1,30 Mb
Space HTC Desire consumed on phone without Data: moved 2 sd: 2,02 MB > 0,774 kb

Thanks :-)

Reply all
Reply to author
Forward
0 new messages