Why corona sdk is taking too much memory after taking build for android. i just used 6 display objects as rectangle.it builds for android as 6mb.have not used any external libraries.can anyone answer it.
This post confused me for a second. Usually when you use the term “memory”, you’re referring to the device’s RAM memory, not how much space the App takes up in storage.
I’m not sure which question you are asking? Why is the .apk file so large? or Why am I using a lot of system RAM? I’ll try to answer both questions for you.
- Why is the .apk so large?
While you are not using a bunch of libraries, the Corona SDK core does use them. For instance, you may not be using SQLite or Facebook, or Push notifications, but we include those libraries. It would be too complex to try to have a system that was picky on what it included. 6MB is a tiny app these days. One background image for today’s device resolutions can push over 1MB just for the image file.
- Why am I taking up so much RAM?
Well 6mb of RAM is pretty minimal exactly. For a typical android older tablet like the Google Nexus 7, at its 1024x600 resolution, that background image is going to take 4MB of RAM. Now you’re app isn’t using much, with just rectangles, but there is overhead.
Rob
Thanks very much rob for your reply.my question to u was the first one which you have answered .can you tell me in what ways we can reduce the .apk file size because we are developing games.game file size should not take larger apk file.
Your game size will ultimately be dictated by your art and audio resources. It takes a few images to outgrow your code and our library size. Google permits files up to 50mb without having to go to expansion files. Do you have some target limit you’re working towards?
Rob
Thanks a lot Rob for the information. But still is there anyway to exclude the unwanted library files ?
Venu
Thanks Rob, jedi
Yes we have limit ,It should be upto 3-6mb .We are trying to reduce but still it takes extra file size for apk .Does many lua files (for eg 4-5 )affect the file size for apk?
Lua files take virtually nothing in comparison to images and audio.
This post confused me for a second. Usually when you use the term “memory”, you’re referring to the device’s RAM memory, not how much space the App takes up in storage.
I’m not sure which question you are asking? Why is the .apk file so large? or Why am I using a lot of system RAM? I’ll try to answer both questions for you.
- Why is the .apk so large?
While you are not using a bunch of libraries, the Corona SDK core does use them. For instance, you may not be using SQLite or Facebook, or Push notifications, but we include those libraries. It would be too complex to try to have a system that was picky on what it included. 6MB is a tiny app these days. One background image for today’s device resolutions can push over 1MB just for the image file.
- Why am I taking up so much RAM?
Well 6mb of RAM is pretty minimal exactly. For a typical android older tablet like the Google Nexus 7, at its 1024x600 resolution, that background image is going to take 4MB of RAM. Now you’re app isn’t using much, with just rectangles, but there is overhead.
Rob
Thanks very much rob for your reply.my question to u was the first one which you have answered .can you tell me in what ways we can reduce the .apk file size because we are developing games.game file size should not take larger apk file.
Your game size will ultimately be dictated by your art and audio resources. It takes a few images to outgrow your code and our library size. Google permits files up to 50mb without having to go to expansion files. Do you have some target limit you’re working towards?
Rob
Thanks a lot Rob for the information. But still is there anyway to exclude the unwanted library files ?
Venu
Thanks Rob, jedi
Yes we have limit ,It should be upto 3-6mb .We are trying to reduce but still it takes extra file size for apk .Does many lua files (for eg 4-5 )affect the file size for apk?
Lua files take virtually nothing in comparison to images and audio.