title: Dynamic layout error
body: <p>i have display image from url.that i smy code.it show me nullpointer exception warning and my screen seen blank.</p>
  
  <p>try
             {</p>
  
  <pre><code>        for(i=0;i&lt;4;i++)
          {
  
              url[i] = new URL(str[i]);
              Log.v("....urllength....",url[i]+"");
              tr.setLayoutParams(new LayoutParams(
                      LayoutParams.WRAP_CONTENT,
                      LayoutParams.WRAP_CONTENT));
  
  
           conn[i]=(HttpURLConnection)url[i].openConnection();
  
  
           conn[i].setDoInput(true);
            conn[i].connect();
           is[i] = conn[i].getInputStream();
          //Log.v("....is....",is[i]+"");
          bmp[i] = BitmapFactory.decodeStream(is[i]); 
            iv.setImageBitmap(bmp[i]);
  
           iv.setLayoutParams(new LayoutParams(
                   LayoutParams.FILL_PARENT,
                   LayoutParams.WRAP_CONTENT));
  
          tr.addView(iv);
  
           tl.addView(tr,new TableLayout.LayoutParams(
                   LayoutParams.FILL_PARENT,
                   LayoutParams.WRAP_CONTENT));
  
          } 
          }
  </code></pre>