Re: [android-beginners] Available data from an InputStream from URLConnection?

2010-04-12 Thread Chris Ross
Sorry to ping again, but does anyone have any idea how to take an InputStream from a URLConnection, and make enough data available so that BitmapFactory will either (a) wait for the data, or (b) have all data already available to it? I looked at all of the various classes in/around InputStr

[android-beginners] Available data from an InputStream from URLConnection?

2010-04-10 Thread Chris Ross
I have an AsyncTask retrieving content from a website. A few of them in parallel, actually. I've noticed that when I run on a device, rather than the emulator, I will sometimes get a null Bitmap back when I do: URLConnection conn = url.openConnection(); Bitmap image = BitmapFactor