Actually I am getting 25 thousand of JSON objects from a web service and i am using Jackson to parse them and when i am trying to have that in collection(HashMap, LinkedHashMap, Array List, Map) and unfortunately using all of them i am running into “Out Of memory Exception in Android”.. Can someone experimented this before with huge objects for my case it may go upto 50 thousand objects at maximum. so how do i handle in a better way. I have tried to create some customized objects by extending the above collections but i am not quite well enough to get that out. Please any suggestions.
Share
One technique for reducing the memory foot print:
I’ll talk about strings, but the following holds for other objects too.
To prevent holding the same (.equals) object in multiple instances, do something like