Back to project page AndroidAPP-TorEngine.
The source code is released under:
GNU General Public License
If you think the Android project AndroidAPP-TorEngine listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ironwolf.torengine; //from w ww . j a va2s . co m import com.google.ads.AdRequest; import com.google.ads.AdSize; import com.google.ads.AdView; import android.app.Activity; import android.os.Bundle; import android.widget.LinearLayout; public class Banner extends Activity { private AdView adView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.bannermain); adView = new AdView(this, AdSize.BANNER, "a14fa0e7777468b"); LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout); layout.addView(adView); adView.loadAd(new AdRequest()); } }