I have an Android app that works well in the emulators for Android 2.2, 2.3.1 & 2.3.3. But when I test it out on Android 4.0, it gives this error:
Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo
…
…
Caused by: java.view.InflateException
…
…
Caused by: java.lang.reflect.InvocationTargetException
…
…
Caused by: java.lang.OutOfMemoryError
It occurs everytime I try to go the next activity! (I use a TabActivity
which has 3 activities within it).
I am not sure what has changed in API 14. Please advice.
Check the value of the "Max VM application heap size" parameter in the AVD you use. Android 3.x AVD uses by default 48 Mb, so it should be at least not less for Android 4.0.
I couldn't find the specification of Galaxy S II with heap size info included, but I suggest you to try 48 or 64 Mb.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With