Hello, Im trying to display a url image in an ImageView container on the screen. I see the image, but sometimes the application crashes. I am wondering if im using the stream properly. Code: URL url = new URL("http://192.168.1.111/jpg/image.jpg"); InputStream stream = url.openStream(); Bitmap bmp = BitmapFactory.decodeStream(stream); stream.close(); myImageView.setImageBitmap(bmp);
Any help or suggestions ? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en