title: Blackberry ad-banner click
body: <p>How to add click event in blackberry banner ad.<br>
  Here is my code:</p>
  
  <pre><code>public class DemonstrationScreen extends MainScreen 
  {  
      public DemonstrationScreen()
      {
        final Bitmap customPlaceholder = Bitmap.getBitmapResource("arrow.png");
        Banner bannerAd = new Banner(add.APID,null,10000, customPlaceholder);
        bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE);
        VerticalFieldManager vfm = new VerticalFieldManager
                                   (VerticalFieldManager.NO_VERTICAL_SCROLL
                                   | VerticalFieldManager.NO_VERTICAL_SCROLLBAR
                                   | VerticalFieldManager.USE_ALL_WIDTH);
        HorizontalFieldManager hfm = new HorizontalFieldManager
                                   (HorizontalFieldManager.FIELD_HCENTER
                                   | HorizontalFieldManager.FIELD_VCENTER);
        hfm.add(bannerAd);
        vfm.add(hfm);
        add(vfm);
  
        FieldChangeListener listener=new FieldChangeListener() {
              public void fieldChanged(Field field, int context) {
  
                  if(field==bannerAd){
                      Dialog.alert("Banner clicked");
                  }
              }};
              bannerAd.setChangeListener(listener);
  
      }  
  }
  </code></pre>
  
  <p>this is not working. when i click the ad, then its not showing anythig.</p>