Breaking Up APK for Google Play (Android)

Hi, anybody here know how to break up the APK file into smaller pieces for the 50 meg limit for Google Play Store?

My current file is like 300MB. How do I build the project into smaller size? or pieces?

Is there any feature in Cocos2d-X that does that?

Thanks.

FaRHaN

anybody?

Hi!
As far as I know, you can not break your APK apart.
You may use some magic to satisfy Google Play 50mb restrictions:

  1. Remove all unused libraries from project. As example: if you make game only for Android, you should remove all other platforms directories from project. Some libraries are huge.
  2. Compress your graphics: try pack it into atlases (like PVR Tool does), and compress single files with some like http://tinypng.org/
  3. If after all you still have too big size: try to use in-game uploader for some needed resources.

Compressing to PVR will not give any benefit because most devices just don’t support this compression type. Compressing PNG is OK, I’m sure that most files can be compresed to PNG8 or PNG8 dithered).

Btw, sort resources by decreasing file size in file manager. What kind of resources has biggest size per file? Are there resources like 100 small similar pictures?

P.S. It’s better to not try to split file on several parts because mobile games should have nice quality to attract users. There’s nothing good in 300 or even 100 MB of resources.

Asset Manager and expansion files?

Cory Trese wrote:

Asset Manager and expansion files?

I read from google play that says you can put the asset files in the expansion files?
Do you know how do we do that?
How do we separate the asset files from the apk into the expansion files?

I got a 300MB apk file and not sure how to build it with separate apk and extension files?
Anybody know how do we solve this problem?

Thanks.

Yes, you can put your assets in expansion files.

http://developer.android.com/google/play/expansion-files.html

This will only work for Android, and requires some Java and C++ code.

It can be done, and it does work. That link has a “developer checklist” that is a map to victory.

Thanks, I will take a look at that.
I wish they got a simpler tutorial on how to actually create the expansion file through eclipse :confused:

Cory Trese wrote:

Yes, you can put your assets in expansion files.
>
http://developer.android.com/google/play/expansion-files.html
>
This will only work for Android, and requires some Java and C++ code.
>
It can be done, and it does work. That link has a “developer checklist” that is a map to victory.

Hey,

I am very sorry I guess i am a bit late but i came across this post and it helped me a lot it may also help you. :slight_smile:

Hi everybody!
I’m facing with same problem. My apk is more than 100M but google play limit 50m for one application.
My data put in assets folder is very large. How i can improve size of apk or anyone have solution about this, please help me!
Thanks for your help!