title: Request time failed : java.net.socketexception : Address family not supported by protocol
body: <p>i have searched for this exception everywhere but could not find a resolution &amp; any help would be appreciated.
  i have tried putting break points, but they do not get hit, the error is also visible in log.v and not in log.e.
  The code works for first few calls say for 10-12 times, then gets slower(starts failing with this error), and eventually throws this error every-time.</p>
  
  <pre><code>            _actionRunble = new Runnable() {
              public void run() {
                  try{
                      ##..##
                       _imView.setImageBitmap(bmImg);
                       Drawable oldD = _imView.getBackground();
                       Drawable dd = new BitmapDrawable(bmImg);
                       _imView.setBackgroundDrawable(dd);
                       //(((BitmapDrawable)oldD).getBitmap()).recycle();
                       Thread t = new Thread(_r);
                       t.start();
                  }catch(Exception e)
                  {
                      e.printStackTrace();
                  }
                }
             };
             _r = new Runnable() {
              @Override
              public void run() {
                  downloadFile(imageUrl);
              }
             };
             Bitmap bmImg;
             void downloadFile(String fileUrl){
              URL myFileUrl =null;          
                try {
                     myFileUrl= new URL(fileUrl);
                } catch (MalformedURLException e) {
                     e.printStackTrace();
                }
                catch (Exception e) {
                     e.printStackTrace();
                }
                try {
                     HttpURLConnection conn= (HttpURLConnection)myFileUrl.openConnection();
                     conn.setDoInput(true);
                     conn.connect();
                     InputStream is = conn.getInputStream();
  
                     bmImg = BitmapFactory.decodeStream(is);
                     //this.runOnUiThread(_actionRunble);
                     _mHandler.postDelayed(_actionRunble, 2000);
                     //_mHandler.postAtFrontOfQueue(_actionRunble);
                     //_mHandler.post(_actionRunble);
                } catch (IOException e) {
                     e.printStackTrace();
                }
                catch (Exception e) {
                     e.printStackTrace();
                }
           }
  </code></pre>
  
  <p>activity oncreate calls downloadfile(...) and after return of the call i again call with the same url to get the updated image. I tried delaying the posting message on main queue by 2 secs(although i dont want that) but that doesnt works too :( .
  Please feel free for further clarification. </p>