I want to programmatically simulate memory in android. I want to create a low memory warning when I press a button in my activity .. is there any way to do this ..? is there any way to limit memory in android ..?
If you had any ideas, please let me know ..
Thanks in advance.
When creating AVD, you noticed that in the "Hardware" section, if you click the "Add" button, you can set a property with the name Max. VM application heap size . Does a lower heap size set in your case to easily get an OOM error?