List of all Iphone and Blackberry Development codes in a one click Iphone,objective C,xcode,blackberry Development,iOS Development

Tuesday, February 5, 2013

Display Ads in Blackberry

The following code will display ads in blackberry. First register for blackberry adservice click here.
Banner bannerAd = new Banner(your zone id, null); bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE); //bannerAd.setTestModeFlag(true); 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);



        

No comments:

Post a Comment