How do I reduce the File Size of APK?

Get help using Construct 2

Post » Thu Oct 30, 2014 8:26 pm

I made a very basic game, and got a 20MB huge file size, after I built the APK with Crosswalk XDK.

When I exported this android game with construct2 to the folder, I got just 300KB in size. So It seems the XDK is adding all the unnecessary extra size. A game that could easily be just a few MB's.

Are there other builders compatible with Construct 2 than don't add all this extra size?

Another issue is that I am unable to test the games in Genymotion. I can run any other games from Google Play, but it seems the games made built with Crosswalk, don't seem to run, just a black screen. Tried to enable the 2D and 3D acceleration in VirtualBox, but nothing changed.
B
3
Posts: 6
Reputation: 187

Post » Thu Oct 30, 2014 8:37 pm

short answer, you cant if you use crosswalk, sorry :/
you can try the "normal" Android build which is only labeled "Android" in the XDK, may not run as fast as Crosswalk builds on old devices but has a very small apk output!
for my games and testdevices it functions pretty well! :)
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Thu Oct 30, 2014 9:19 pm

Hi Minions,

I have the same issue. I believe its because the app is a HTML5 app and so the XDK process actually bundles your app with a Chrome Browser environment.
I have also thought of just building as 'Android' but its not clear to me how many devices would have issues with speed or running with this type of build.

Bluestacks (Android Emulator) has the same issue as Genymotion - C2 projects either stick at the black intro screen or wont run at all.

Be great if these issues could be discussed deeper. :)
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Thu Oct 30, 2014 11:58 pm

@JLH1964 - Try out the "Andy" android emulator, i've always had more success with that
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938

Post » Fri Oct 31, 2014 3:17 am

When trying to install the so called "Andy" emulator, it corrupted my current VirtualBox installation and virtual devices completely, and then the Andy emulator stopped installation with some error, after the package tried to install itself for more than 1 hour.
B
3
Posts: 6
Reputation: 187

Post » Fri Oct 31, 2014 3:24 am

fldr wrote:short answer, you cant if you use crosswalk, sorry :/
you can try the "normal" Android build which is only labeled "Android" in the XDK, may not run as fast as Crosswalk builds on old devices but has a very small apk output!
for my games and testdevices it functions pretty well! :)


JLH1964 wrote:Hi Minions,

I have the same issue. I believe its because the app is a HTML5 app and so the XDK process actually bundles your app with a Chrome Browser environment.
I have also thought of just building as 'Android' but its not clear to me how many devices would have issues with speed or running with this type of build.


Yeah, I will maybe try another software solution then, or if that doesn't work, then the other option would be to build all manually without any third party software.

I see some great games in google play, that are very small in size and run ultra fast in all devices (old, new, phone, tablet), it seems those apps are manually coded and not built with software.

What I liked about the idea of using C2, is that it was letting me export to a lot of different platforms at once (android, apple, windows8, etc), and doing it manually for each platform would take a lot of time. But if I cannot make it work, I will probably concentrate in android only and do it all manually for now.
B
3
Posts: 6
Reputation: 187

Post » Mon Nov 03, 2014 7:53 am

I guess C2 isn't really optimized for mobile platforms just yet. But if you consider the rate at which devices upgrade and improve, and the rate at which C2 might evolve along crosswalk and similar solutions. We can safely expect that the file size and other similar problems won't be an issue after much longer.
However, if you export to html5, which is what C2 was originally design for, you get 3-8Mb programs =)

I also struggle tons with crosswalk, it gives me 25Mb apps, that turn into 50Mb after install... And these are apps comparable to other "pro made" apps that often aren't bigger than 2Mb in size. And this really hurts us as developers. But, looking at the bright aspects of it all: C2 apps using Crosswalks work perfectly in every device I've ever tested.
However, I've seen famous apps, that you know should be no more that 5Mb that, just like Crosswalk apps, are over 50Mb in size. So maybe it's isn't such a big deal (the facebook app is 170Mb btw)
B
43
S
12
G
6
Posts: 446
Reputation: 6,802

Post » Thu Nov 20, 2014 8:11 am

Sargas wrote:I guess C2 isn't really optimized for mobile platforms just yet. But if you consider the rate at which devices upgrade and improve, and the rate at which C2 might evolve along crosswalk and similar solutions. We can safely expect that the file size and other similar problems won't be an issue after much longer.
However, if you export to html5, which is what C2 was originally design for, you get 3-8Mb programs =)

I also struggle tons with crosswalk, it gives me 25Mb apps, that turn into 50Mb after install... And these are apps comparable to other "pro made" apps that often aren't bigger than 2Mb in size. And this really hurts us as developers. But, looking at the bright aspects of it all: C2 apps using Crosswalks work perfectly in every device I've ever tested.
However, I've seen famous apps, that you know should be no more that 5Mb that, just like Crosswalk apps, are over 50Mb in size. So maybe it's isn't such a big deal (the facebook app is 170Mb btw)



Yes, I actually got the HTML5 files and converted to Android using Crosswalk.

And if we use other platform instead of Crosswalk, does it work better?

Anyone tried to deploy the HTML5 files from Construct2, using CocoonJS or PhoneGap?

Do you get smaller file size?
B
3
Posts: 6
Reputation: 187

Post » Thu Nov 20, 2014 8:22 am

use winrar , it works for me.
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » Wed Feb 25, 2015 8:24 am

ex32 wrote:use winrar , it works for me.


what do you mean? user 'winrar' to make APK file lol?

And, other guys, is there any better solution by now to reduce APK file size and performs good in all different mobile device?
B
5
S
1
Posts: 20
Reputation: 433

Next

Return to How do I....?

Who is online

Users browsing this forum: jbr190 and 38 guests