안드로이드 개발 질문/답변
(글 수 45,052)
ImageView iv = (ImageView) v.findViewById(R.id.ID_IMG);
try {
} catch (IOException e) {
try {
URL url = new URL("http://test.jgp");
URLConnection conn =
url.openConnection();
conn.connect();
BufferedInputStream bis = new BufferedInputStream(conn.getInputStream());
Bitmap bm = BitmapFactory.decodeStream(bis); bis.close();
iv.setImageBitmap(bm);
URLConnection conn =
url.openConnection();
conn.connect();
BufferedInputStream bis = new BufferedInputStream(conn.getInputStream());
Bitmap bm = BitmapFactory.decodeStream(bis); bis.close();
iv.setImageBitmap(bm);
} catch (IOException e) {
Logger.e("Androes", " " + e);
}이런식으로 했는데요
용량이 작은 사진은 불러와 지는데..
해상도가 좀 큰(1000~2000사이)사진.. 한 2-3메가 정도 하는 사진은 안불러와지네요..;
느려서 그런줄 알고 계속 기다려보아도.. 안나옵니다..
WebView로 띄우면 나오는걸로 봐서 다운을 못받는건 아닌거 같은데..
웹뷰로 띄우면 리사이징이 안되서 너무큰 사진이라 제대로 보이지가 않고..
해결 방법 있으신분 부탁드립니다. ㅠㅠ



