Download Free FREE High-quality Joomla! Designs • Premium Joomla 3 Templates BIGtheme.net
Home / 2017 / January / 06 (page 3)

Daily Archives: January 6, 2017

// Edit your activity's layout XML file to include a // RelativeLayout to contain the AdView: ... // In your activity's onCreate function, construct the AdView, // add to the container view and load the ad: private AdView adView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... RelativeLayout adViewContainer = (RelativeLayout) findViewById(R.id.adViewContainer); adView = new AdView(this, "938290939641711_938305336306938", AdSize.BANNER_320_50); adViewContainer.addView(adView); adView.loadAd(); }