Download Free FREE High-quality Joomla! Designs • Premium Joomla 3 Templates BIGtheme.net
Home / My account
// 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, "119477451902752_119481851902312", AdSize.BANNER_320_50); adViewContainer.addView(adView); adView.loadAd(); }