private Bitmap openPic(String file) {
if (file == null)
return null;
if (DEB_PIC) Log.d(TAG,"openPic() file = " + file);
File f = new File(file);
if (f.exists()) {
return BitmapFactory.decodeFile(file);
} else {
Log.d(TAG,"openPic() "+ file+" not exists");
return null;
}
}
沒有留言:
張貼留言