title: How to resolve java.net.MalformedURLException: Protocol not found: 9 in android
body: <p>I am trying to load images in my android application from a url (<a href="http://www.elifeshopping.com/images/stories/virtuemart/product/thumbnail%20%282%29.jpg" rel="nofollow">http://www.elifeshopping.com/images/stories/virtuemart/product/thumbnail (2).jpg</a>) using <code>BitmapFactory</code> the code is below :</p>
  
  <pre><code>try {
              // ImageView i = (ImageView)findViewById(R.id.image);
              bitmap = BitmapFactory.decodeStream((InputStream) new URL(url)
                      .getContent());
              i.setImageBitmap(bitmap);
          } catch (MalformedURLException e) {
              e.printStackTrace();
          } catch (IOException e) {
              e.printStackTrace();
          }
  </code></pre>
  
  <p>here i get </p>
  
  <pre><code>05-03 15:57:13.156: W/System.err(1086): java.net.MalformedURLException: Protocol not found: 9
  05-03 15:57:13.167: W/System.err(1086):     at java.net.URL.&lt;init&gt;(URL.java:273)
  05-03 15:57:13.167: W/System.err(1086):
  
  at java.net.URL.&lt;init&gt;(URL.java:157).
  </code></pre>
  
  <p>Please help by telling what I am doing wrong.</p>