I have the same problem found here and I do not know if now there is a a solution. I have a Bitmap image of 2592x1944 pixels and, when I run Bitmap.decodeFile(...) the application crashes cause OutOfmemory Exception.
Does anyone of you know how to solve it?
Thank you very much
Here below my code:
for (int iFile = 0; iFile < files.length; iFile++) {
if (files[iFile].exists()) {
bitmap = BitmapFactory.decodeFile(files[iFile].getAbsolutePath());
int[][][] rgb = Utils.getImageRgb(bitmap);
indexLastFile = iFile + 1;
images.put("M" + (iFile + 1), rgb);
}
}