OutofMemory parsing SOAP using wsdl2code

75 Views Asked by At

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

1

There are 1 best solutions below

0
Palak On

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.