title: android 4.1 image reading from url
body: <p>Hi I am trying to get an image from <code>url</code> to <code>bitmap</code>. I have android 4.1 device. When I run this code on <code>new URL(). open connection().getInputStream());</code>  app freezes then force close. Any idea?</p>
  
  <pre><code>   runOnUiThread(new Runnable() {
              public void run() {
                  String url = "http://netmera.com/cdn/app/file/netmera.com/series/img-48/1372262272227_89/medium";
                  try {
                      Bitmap bmp = BitmapFactory.decodeStream(new URL(url)
                              .openConnection().getInputStream());
                  } catch (MalformedURLException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  } catch (IOException e) {
                      // TODO Auto-generated catch block
                      e.printStackTrace();
                  } 
                }
  </code></pre>