How to solve the SkImageDecoder::Factory returned null
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2503628/bitmapfactory-decodestream-returning-null-when-options-are-set">BitmapFactory.decodeStream returning null when options are set</a>  </p>
</blockquote>



<p>The code:</p>

<pre><code>URL url = new URL(bitmapurl);

HttpURLConnection connection = (HttpURLConnection) url.openConnection();
     connection.setDoInput(true);
      connection.connect();
 InputStream input = connection.getInputStream();

bitmap[i] = BitmapFactory.decodeStream(input);
System.out.println("the bitmap is +bitmap[i]);
</code></pre>

<p>Error in Logcat:</p>

<pre><code>03-29 15:01:50.044: DEBUG/skia(238): --- SkImageDecoder::Factory returned null
the bitmap is null
</code></pre>

<p>How can this problem be solved?</p>
