5
, 나는 파일이 : 내 클래스에서 직접 선언BitmapFactory.decodeFile(); 내 응용 프로그램에서
private File TEMP_PHOTO_FILE = new File(Environment.getExternalStorageDirectory(), "temp_photo.jpg");
을하고, 거기에 모든 방법을 볼 수 있습니다
나는이 사용할 :.
Bitmap thePhoto = BitmapFactory.decodeFile(Uri.fromFile(TEMP_PHOTO_FILE).toString());
을
왜이 작동하지 않습니다 "///mnt/sdcard/temp_photo.jpg 파일 :"
Uri.fromFile (TEMP_PHOTO_FILE)로 .toString()은 문자열을 생성? 우리가 파일을 다루고 있기 때문에 URI를 입력으로 받아들이는 decodeFile() 메소드가 있어야합니다. 그것을 허용하지 않는 것은 불일치로 인해 매우 실망 스럽습니다.