336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
try{
URL url = new URL("이미지 주소");
URLConnection conn = url.openConnection();
conn.connect();
BufferedInputStream bis = new BufferedInputStream(conn.getInputStream());
Bitmap bm = BitmapFactory.decodeStream(bis);
bis.close();
imgView.setImageBitmap(bm);
}catch(Exception e){
}
※주의!!
퍼미션 <uses-permission android:name="android.permission.INTERNET"/>
'android' 카테고리의 다른 글
android 핸들러로 메세지 담아서 보내기 (0) | 2014.12.17 |
---|---|
[android]Activity 동시에 종료하기 (0) | 2014.10.15 |
android 이미지 원래비율대로 리사이징 (0) | 2014.10.01 |
android 텍스트뷰 특수문자 넣기 (0) | 2014.09.30 |
1초마다 증가하는 쓰래드 (0) | 2014.09.29 |