Android app file-size is rather large

Hi,

I have recently purchased the subscription and released my first app for Android using it. So far I’m quite happy with the result, except for the app filesize.
You can check my app here:
https://market.android.com/details?id=com.likalo.android.Lomeno

The application is a whooping 6MB and only got one screen + a couple of sprites.

I went onto the apk (it being just a tar archive and all) and found a lot of additional resources there, which my app doesn’t use. IS there any way to reduce the size? Maybe remove all those additional resources?

Thanks. [import]uid: 122522 topic_id: 22569 reply_id: 322569[/import]

What resources are in your apk file that’s extra? Some may be needed to make sure it bridges to android code. [import]uid: 49520 topic_id: 22569 reply_id: 89954[/import]

I did not think about .apk’s being tar-balls, so for fun I listed out the files in the one app I have. Minimal graphics/screens, Widget based, NO Audio or Video.

The file data breaks down like this:

 454,015 resources for Android  
1,914,016 libraries { Corona, ALmixer, MPEG, OpenAL, Vorbis }  
 128,371 com/goggle/l18n/phonenumbers/data ????  
1,468,276 classes.dex (core Java classes?}  
 344,408 Widget resources for the widget library  
 216,062 web-resources  
1,160,795 My Graphics  
 8,205 Manifest and Readme.  

Actually I checked two different APK files and besides my resources, it was pretty much the same files, same file size. The audio/video libraries add about 460Kbytes to the package. The Corona SDK library is 1.4m of that 1.9m total. Can’t live with out that. Can’t live with out the classes.dex file either, so at best, Ansca could trim about half a meg out of this. Even if we didn’t need the various resources, you’re at best going to knock out a total of 1MB from the size. But I suspect all those resources are actually needed. [import]uid: 19626 topic_id: 22569 reply_id: 89956[/import]

Ah, you seem to be right. I never looked at the size summary :slight_smile: I just saw that ./res/ folder is filled with lots of resources that are not a part of my app, nor are a standard Android stack. Also classes.dex is normally about ~500KB is size in most applications I checked.
I have nothing against the library’s own size, and totally understand that the engine needs to work somehow, I’m just wondering what are all those extra bits doing there. [import]uid: 122522 topic_id: 22569 reply_id: 89975[/import]

we know this. we are fixing it.

we are also removing stuff like papaya and super-rewards from out builds.

this is a known issue.

c [import]uid: 24 topic_id: 22569 reply_id: 89988[/import]

That’s usually how it is when it comes to building with an sdk. All standard frameworks usually need to include the files necessary to make your code work. I just wanted to make sure it wasn’t anything other than that.

@Carlos,
In the future, will we be able to tell Corona what modules will be put in the build before compiling it?

[import]uid: 49520 topic_id: 22569 reply_id: 89989[/import]

Thank you. You guys are great. [import]uid: 122522 topic_id: 22569 reply_id: 90230[/import]