앱이 이미지를 쓰기 가능한 폴더에 저장하고 콘텐츠가 BufferedReader
에로드되고 ImageView
에 할당하려고합니다. 그것을하기위한 올바른 접근 방법은 무엇입니까?쓰기 가능한 폴더에서 이미지를로드하고 Android에서 ImageView에 할당하는 방법은 무엇입니까?
File file = new File(context.getFilesDir(), body + ".image");
BufferedReader in = new BufferedReader(new FileReader(file));
ImageView icon = (ImageView) view.findViewById(R.id.icon);
icon. //What comes to here?
이상적으로는, 예를 들어 ([이미지 로딩 라이브러리 (http://android-arsenal.com/tag/46) 사용하거나 BitmapFactory''와 함께 작동 자신의 배경 스레드를 'decodeFile()','decodeStream()'). 'BufferedReader'에서 바이트를 읽은 후에'decodeByteArray()'를 사용할 수 있다고 생각합니다.하지만 너무 복잡해 보입니다. – CommonsWare