I am programming a image segmentation algorithm on Android 2.2 platform. When run the following line of code:
double[][] temp=new double[328][576];
there is a out of memory exception.
However, I use the ActivityMannager.getMemoryInfo() to check the available memory space on the system and I find there is still 44851200 bytes free space.
I am confused that why there is a out of memory exception with still free space on the system?