안녕하세요. 안드로이드를 처음 접한 초짜 입니다. 이미지를 불러올때 지금은 drawable 폴더에 넣어서 R.drawable.이미지 네임 이런식으로 불러오는데 SD 카드에 있는 이미지를 불러 오거나 쓸때는 어떻게 하는지 몰라서 질문 드립니다. 아시는 분 계시면 알려주셨으면 감사 드리겠습니다..^^
일단 이미지 저장은 간단합니다 File f = new File("sdcard/Image.jpg"); 파일명 FileOutputStream out = nell; try{ saveBmp.compress(CompressFormat.JPEG, 100, out); 이미지 파일 }catch(....){ .......... } 저같은 경우에는 위와같은 식으로 해결했었구요. 그리고 불러오는 작업은 Content Providers 를 이용하여 불러왔던거같네요 Content Providers관련하여 검색해보세요~
File f = new File("sdcard/Image.jpg");
파일명
FileOutputStream out = nell;
try{
saveBmp.compress(CompressFormat.JPEG, 100, out);
이미지 파일
}catch(....){
..........
}
저같은 경우에는 위와같은 식으로 해결했었구요.
그리고 불러오는 작업은 Content Providers 를 이용하여 불러왔던거같네요
Content Providers관련하여 검색해보세요~