my 3d game app is bitmap heavy, including several 1280x800 for 10" tablets. I use an intricate strategy of bitmap swapping and recycle commands.to avoid getting the dreaded "out of memory error" from breaking the virtual heap. I had to learn these techniques the hard way as it wasn't addressed in the dozens of heavy android texts and tutorials I've read.
I can't find anywhere online a 'dashboard' of current phone vm heaps. it would be nice to know, for instance, what percentage of android 2.3 and up phones have a 48 or better vm heap. the virtual device manager starts heaps at 16, but from what I've researched, you could count on heaps of at least 24 for android version 2.3 devices. unfortunately it depends on the device besides the android version. it appears Samsung has the best vm heaps. my ancient version 2.3 Samsung exhipit actually has a vm heap of 64, found with the
java.lang.Runtime.getRuntime().maxMemory());
command.
I'm using bitmaps that won't break phones with vm heaps of at least 48, and my minimum sdk version declaration is 2.3. is that minimum high enough? I used to use a much lower minimum as my app uses no special features, and I wonder how many pre 2.3 version phones I unknowingly crashed the heaps on before I knew about all this.
michael
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment