3

I have generated a Soap client from wsdl2code , that used XMLPullParser to parse the response. I am getting a 30 Mb file as response, and OutofMemory exception while parsing.

What is a best way to avoid this exception, I have already downloaded the response from server and kept in internal storage of device as suggested in this link Very large SOAP response - Android- out of memory error

Thanks

Community
  • 1
  • 1
Nibha Jain
  • 7,742
  • 11
  • 47
  • 71

1 Answers1

0

You can use android:largeHeap="true" to request a larger heap size.

The only way to have as large a limit as possible is to do memory intensive tasks via the NDK, as the NDK does not impose memory limits like the SDK.

Palak
  • 2,165
  • 2
  • 21
  • 31