aspose file tools*
The moose likes Android and the fly likes How to get more allowed memory usage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to get more allowed memory usage" Watch "How to get more allowed memory usage" New topic
Author

How to get more allowed memory usage

Rasse Basse
Greenhorn

Joined: Nov 21, 2012
Posts: 1
Hello, I am creating this game for android and I have a few question about memory usage. When we were coding within our ignorance we had our app using about 40mb memory but that made a test phone crash (Xperia Arc (something, something)) which went out of memory. We then coded it smarter with the memory and got to about 20 mb. We have googled alot and we've seen peoples posting that most mobile phones are limited to 16 mb and others 32 mb. BUT, we've also compared with other applications like angry birds, which are using about 129 memory (which works fine on the Xperia arc that crashes over 32 mb with our app).

My question is then; can we somehow get to use more memory than 16 / 32 mb or how does the apps that uses way more do?

Another thing that we're doing is that we're loading all images currently used in the main constructor of the app, and maybe a solution would be to load them inside a background thread?


Thanks a lot for reading this and thanks advance for your probably awesome replies.
 
Don't get me started about those stupid light bulbs.
 
subject: How to get more allowed memory usage