How big are the images you're trying to load? If you're creating Bitmap objects from your resources then you are very likely running out of memory in the process. Look into BitmapFactory.Options and try increasing the sample size to see if that makes any difference.
I would also suggest that you look into ways to pull your tiles from the web instead of storing them on the device. You very rarely see apps in the wild that have a larger footprint than 20mb and some devices like the G1 only have 70mb of storage TOTAL for all apps. So you're basically asking someone to remove everything from their device to load your app. On Aug 23, 6:38 am, Raphael André Bauer <[email protected]> wrote: > Hi, > > I am currently developing a PhoneGap application - but I am pretty > sure that my problem is way more related to Android than to PhoneGap. > My app consists of a directory assets/www/maps. In this folder is a > huge amount of image files that are tiles for a map library. > > My observation is: When the asset folder contains around 80mb of > files, the app works nicely both on the emulator and on my nexus one. > When it's larger than 80mb it crashes on both devices. the devises are > running 2.3.3 Api level 10 (but it happens on 3.2, too). > > The error messages are not really helpful ("error parsing apk file" > popup on nexus and "cannot read Android Manifest" via logcat on > emulator). > > I am really a newbie on Android, so I am a bit lost here. I already > tried to increase the partition size of my emulator like that: > "emulator -avd avd -partition-size 2047" - but this did not help. > > Any pointers how to continue debugging would be really great. If there > are any limits on the amount of files / size of an apk let me know. I > am not aware of any limits - and afaik the 50mb limit of Android apps > distributed via the Android Market was lifted some time ago. > > Thanks a lot :) > > Raphael > ps. I also cross posted my question at the phongap > list:http://groups.google.com/group/phonegap/browse_thread/thread/8333095f... > - but got no answer. > > -- > inc:http://ars-machina.raphaelbauer.com > tech:http://ars-codia.raphaelbauer.com > web:http://raphaelbauer.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

