Hello,
right now i 'm being driven to the brink of madness by this particular problem.
I've used BitmapFactory.decodeFile() in the past many times, but for some reasons unknown to me now its returning null. I have quadruple checked (X 100 ) the file path, image size (800x400, 80kb), image type, the code... but so far i cant see no reasons it should be returning null object
Platform - android, java, eclipse
Code is below. BTW "save_bm_image" function has all the code to save files and works, I'm saving the file just after loading as this a debugging-diagnostic step
I need help to know why BitmapFactory.decodeFile is returning null?
Many thanks in advance
CAMERA_PIC_DIR = "/DCIM/Camera/blocks";
ImageDir = Environment.getExternalStorageDirectory().getAbsolutePath() + CAMERA_PIC_DIR;
. . .
Bitmap WBL_reloaded = BitmapFactory.decodeFile(ImageDir+"WBL_a10.jpg");
if( WBL_reloaded != null ) save_bm_image( WBL_reloaded, ImageDir, "IMG1.png" );
else Log.v(tag, "nulL!!. load failed");
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
Bitmap BL_reloaded = BitmapFactory.decodeFile( ImageDir+"BL_a10.jpg", options );
if( BL_reloaded != null ) save_bm_image( BL_reloaded, ImageDir, "IMG2.png" );
else Log.v(tag, "nulL!!. load failed");