입니다.하지만 빈 화면 만 나타나면 누구나 알 수 있습니까?아래 웹 사이트에서 이미지를 표시하려면
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
URL url;
try {
url = new URL("http://pennapps.com/biblioteka/images/C.jpg");
URLConnection conn=url.openConnection();
conn.connect();
InputStream is = conn.getInputStream();
BufferedInputStream bis = new BufferedInputStream(is);
Bitmap bm = BitmapFactory.decodeStream(bis);
bis.close();
is.close();
ImageView image = new ImageView(this);
image.setImageBitmap(bm);
setContentView(image);
}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
예, 인터넷 권한을 다시 요청하면 해당 코드가 작동합니다. 다른 실에서 그것을하는 것은 훌륭한 아이디어로 남아 있습니다. – mico