title: ImageView - how to inflate or add programmatically?
body: <p>I am programmatically adding ImageView without success. Is there any simple way to add ImageView into Activity programmatically?</p>
  
  <p>Thx</p>
  
  <p>Edit:</p>
  
  <p>I have tried this and it is not working.</p>
  
  <pre><code>                for(Bitmap b: photoField){
                  try{
                      Log.d("BIT", "Bitmapa "+b);
                      if(b!=null){
                          ImageView imv=new ImageView(PoiDisplay.this);
                          imv.setImageBitmap(b);
                      }
                  }catch (NullPointerException e) {
                      e.printStackTrace();
                  }
              }
  </code></pre>