URL로 이미지를 불러오는 과정에서 제목과 같은
bitmap size exceeds vm budget 에러가 납니다..
URL url_value = null;
Bitmap origin_image = null;
try {
url_value = new URL(imageURL);
} catch (MalformedURLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
origin_image = BitmapFactory.decodeStream(url_value.openConnection().getInputStream(), null, options);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
소스는 위와 같구요.. 검색을 통해.. 비트맵 변수 사용후 recycle도 해보고
이미지 디코딩 할때 사이즈도 옵션으로 사이즈도 줄여봤는데도 이미지가 좀 큰 사이즈를 불러오면 메모리 에러가 나고 죽네요...
어떻게 해야 할까요..