Android Htc Eris
Hi i have develo开发者_运维技巧ped an application and it smoothly running in all phones except Htc Eris, in Htc Eris i get out of memory exception, null pointer exception etc, but these problem i never see in my samsung galaxy or motrolloz milestone or spice mobile, i need to know any problem in Htc Eris, like low memory ,low processing power etc
The "Heap Size" on the Htc Eris's factory ROM is at 16M and the other phones are 24M and higher.
You need to try to optimize your application as best as possible so it cam run on the phones with a smaller heap ( ..or virtual memory - similar to the virtual disc size on Windows). A good place to start and easiest is to optimize all your drawables and don't put any PNG's in the drawable folder; these images are not compressed at run time like the other drawable folders. ie. drawable-hdpi. I discovered this by accident when I but a wallpaper in that folder - I was getting the same errors as you. Moving the PNG to the /drawable-hdpi folder alone cleared it.
精彩评论