Trying to read a "large" number of text lines into a list using File.ReadList
My file has about 2200 lines each about 480 chars long.
Testing on the emulator produces java.io.IOException on the File.ReadList stmt.
(the unfiltered log shows a lot of C_FOR_MALLOC .....
GC_FOR_MALLOC freed 8438 objects / 575304 bytes in 60ms
GC_FOR_MALLOC freed 15565 objects / 528880 bytes in 70ms
GC_FOR_MALLOC freed 22013 objects / 539760 bytes in 60ms
)
This is "obviously" (??) a memory problem on the emulator, as it runs perfectly with a small number of lines, and runs equally well on the phone with all 2200+ lines.
My question is what parameter (if any) controls the amount of "memory" on the emulator. I tried specifying 64MB as SD card in the AVD Manager but to no avail. Anyone knows how to increase the memory of the emulator?