title: Android : Device 2.3.3 work well. But Device 4.0.3 don't work. Load Image
body: <p>Android : Device 2.3.3 work well. But Device 4.3 ( HTC One), 4.2.2 don't work. Load Image</p>
  
  <p>'public static Bitmap getBitmapFroUrl(String url) {</p>
  
  <pre><code>    URL m;
      InputStream i = null;
      BufferedInputStream bis = null;
      ByteArrayOutputStream out =null;
      try {
          m = new URL(url);
          URLConnection connection = m.openConnection();
          try {
              HttpURLConnection httpConnection = (HttpURLConnection) connection;
              httpConnection.setRequestMethod("GET");
              httpConnection.connect();
  
              if (httpConnection.getResponseCode() == HttpURLConnection.HTTP_OK) {
                  i = httpConnection.getInputStream();
              }
          } catch (Exception ex) {
              ex.printStackTrace();
          }
          bis = new BufferedInputStream(i,1024 * 8);
          out = new ByteArrayOutputStream();
          int len=0;
          byte[] buffer = new byte[1024];
          while((len = bis.read(buffer)) != -1){
              out.write(buffer, 0, len);
          }
          byte[] data = out.toByteArray();  
          out.close(); 
          bis.close();
          BitmapFactory.Options options = new BitmapFactory.Options();
          options.inJustDecodeBounds=true;
          Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length,options);        
          return bitmap;
      } catch (Exception e) {
          return null;
      }
  
  }'
  </code></pre>
  
  <p>I Don't know Why? Please Help Me. Thanks !</p>
  
  <p>I Know : Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length,options);</p>
  
  <p>bitmap = null ( 4.2.2, 4.3)</p>
  
  <p>bitmap not null ( 2.3.3 )</p>