Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Image View from URL

Image View from URL

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Image View from URL

Postby davidkebo » Tue Nov 24, 2009 5:54 pm

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
David Kebo
davidkebo
Freshman
Freshman
 
Posts: 6
Joined: Sun Nov 08, 2009 8:19 pm
Location: St. Louis, MO

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 8 guests