【发布时间】:2013-02-22 07:40:53
【问题描述】:
String imageInSD = Environment.getExternalStorageDirectory()+"/DCIM/Soovy/2089.jpg";
Bitmap bitmap = BitmapFactory.decodeFile(imageInSD);
if(bitmap == null){
Log.v("combine image", "null");
}else{
Log.v("combine image", "not null");
}
更新:使用 Environment.getExternalStorageDirectory() 感谢您提供信息
【问题讨论】:
-
所以你成功了吗?
-
试试:
String imageInSD = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "DCIM/Soovy/2089.jpg"; -
yes got 正在工作,正如 akashasia 提到的应该使用 Environment.getExternalStorageDirectory()
标签: android bitmapfactory