Though not very elegant, I used a quick hack to get around this with web views. However, I still hope to discover what was wrong.
With respect to the flickr API,
I have an image that I want a Bitmap object for and I have access to the user id grimneko
and picture id 8638235984
.
Therefore, I tried
URL url = new URL("http://www.flickr.com/photos/grimneko/8637130199/lightbox/");
Bitmap mp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
However, mp is null
in this case. I also tried www.google.com
as the url
and that also does not appear to work.
However, http://3.bp.blogspot.com/-sUAEV-EIlyY/T4WIGDkoLpI/AAAAAAAACKI/epNLfw01cW0/s320/corgi+working.jpg does work.
My guess is that Bitmap
objects can only be created from urls that have image extensions. Is this correct?
If that is the case, how might I render the image from that flickr url in a Image View?