I am trying to parse a json file of 5mb, which is causing out of memory exceptions, I know the solution for this is to use json stream parser,
But I need to know why this is happening when Android devices has 1GB ram, at least it can allocate 100MB to my application I think, what going on?
One option: android:largeHeap. The official documentation on this is distressing, but AFAICT it allows you 256MB of heap, and it was introduced in 3.0