It can help you to fully understand the dreadful OutOfMemory Error.
You'll learn when OutOfMemory Error would be thrown so you can avoid it in your production app.
Once you know how to avoid the Error, you can confidently take advantage of the available memory to improve the user experience of your app.
Tip: Starts from Honey Comb, The OOM Error behavior have changed very much, you should pay special attention to it.
this is an open source app. You can find the source code at
* Create new Activity and have option to change the data size per Activity.
* Option to recreate Activity or keep Activity alive after rotation.
* Execute an AsyncTask when Activities's onPause get called, and have option to change the task's running time.
* Option to change the added data size per click.