2011-10-17 7 views
1

다음 코드를 사용하여 내 앱 에 원격 이미지를 표시해야하는 Android 앱을 만들고 있습니다. 는하지만 이미지가 표시되지 않는 : 문제입니다android : 이미지가 표시되지 않습니다.

for(int i=0;i<stringOnTextView.length;i++){ 
    imageUrl = "http://ondamove.it/English/images/users/"; 
    imageUrl = imageUrl+stringOnTextView[i]; 
    System.out.println(imageUrl); 

    URL myFileUrl = new URL(imageUrl); 

    HttpURLConnection conn= (HttpURLConnection)myFileUrl.openConnection(); 
    conn.setDoInput(true); 
    conn.connect(); 
    InputStream is = conn.getInputStream(); 
    bmImg = BitmapFactory.decodeStream(is); 
    image.setImageBitmap(bmImg); 
    System.out.println(bmImg.toString()); 
} 

사람은 말해 줄 수. :) 내 댓글의 완료로 감사

+0

에서 System.out.println (bmImg) ; 널 (null)을 인쇄하지 않습니까 ?? –

+0

[email protected] – ekjyot

+0

을 인쇄하는 데 문제가 있습니까? –

답변

1

,이 세 가지 튜토리얼을보고 당신은 당신이 무엇을해야 발견 할 것이다 :

tuto1
tuto2
tuto3

관련 문제