Currently, I have a piece of code, which is designed to run both in Android 2.3 and 4+
The code will perform much better (Where it will not have OutOfMemory exceptio
1.Build project with target Android 3.0 (API 11) or above. (Project properties - Android - Project Build Target - select above API level 11)
in Manifest file, Change the uses-sdk value as following
< uses-sdk android:minSdkVersion="10" android:targetSdkVersion="11" />
For prior versions of Android 3.0, you can use VMRuntime class for memory manipulations.