title: Android get image from web with JSON
body: <p>I am getting the news information from web. So i can easily get the header and subject of news but the problem is how to get the image from json?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
              if (convertView == null) {  
                          convertView = mInflater.inflate(R.layout.haber_yapisi, null); // gets all of the views from adaptor_content and implements their id
                          holder = new ViewHolder();
                          holder.baslik = (TextView) convertView.findViewById(R.id.baslik);
                          holder.haber = (TextView) convertView.findViewById(R.id.haber);
                          holder.resim = (ImageView) convertView.findViewById(R.id.resim);
                          holder.aaa = (TextView) convertView.findViewById(R.id.aaa);
                          holder.bas=(TextView) findViewById(R.id.head_ana);
                          holder.bas.setText("Ana Sayfa");
                          convertView.setTag(holder);   
                        } else {
                          holder = (ViewHolder) convertView.getTag();
                        }
  
              HttpClient httpclient = new DefaultHttpClient();
              HttpGet httpget = new HttpGet("http://www.dha.com.tr/mobil/anasayfa.asp");
              HttpResponse response;
  
              try {
                  response = httpclient.execute(httpget);
                  HttpEntity entity = response.getEntity();
                  if (entity != null) {
  
                   try {
                       InputStream instream = entity.getContent();
                       String line = "";
                       BufferedReader reader = new BufferedReader(new InputStreamReader(instream));
                       StringBuilder json = new StringBuilder();
  
                      while ((line = reader.readLine()) != null) {
                             json.append(line + "\n");
                       }
  
                    StringBuilder stringBuilder = new StringBuilder();
  
                    JSONArray siteler = new JSONArray(json.toString());
  
  
                         JSONObject ss = siteler.getJSONObject(position);
                         holder.baslik.setText(ss.getString("strsubject"));
                         holder.haber.setText( ss.getString("strbody") );
                             holder.resim.setImageBitmap("WHAT SHOULD I DO FOR GETTİNG IMAGE")
  
                    holder.aaa.setText(stringBuilder.toString());
  
                     instream.close();
  
                  } catch (Exception e) {
                             holder.aaa.setText("Error is: " + e);
                  }
               }
  
             } catch (Exception e) {
                  holder.aaa.setText("Error is : " + e);
             }
  
  
                          return convertView; 
              }
      }
  </code></pre>
  
  <p>PLESE HELP!</p>