我不明白为什么我的 decodeFile 方法返回 null ...这是我的(非常简单的)代码:
...
File f = new File(dataString);
photo_bitmap = BitmapFactory.decodeFile(f.getAbsolutePath());
Log.i("Data... : ", dataString); //show "/external/images/media/832"
Log.i("arbre.getString File : ", f.getAbsolutePath()); //show "/external/images/media/832"
if (photo_bitmap == null) Log.i("BITMAP", "BITMAP IS NULL"); //show this if...my Bitmap is null, why ?
photo_string = BitMapToString(photo_bitmap); //then java.lang.NullPointerException :/
photo_string = photo_string.substring(0, 10);
...
感谢帮助 :)