Back to project page tapad-android-sdk.
The source code is released under:
MIT License
If you think the Android project tapad-android-sdk 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 com.tapad.sample; /* www .j ava 2 s. c o m*/ import android.app.Activity; import android.os.Bundle; import com.tapad.adserving.AdSize; import com.tapad.adserving.ui.AdView; public class AdViewActivity extends Activity { private AdView adViewTop; private AdView adViewBottom; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.managed_ad_view); adViewTop = (AdView) findViewById(R.id.ad_view_top); adViewBottom = (AdView) findViewById(R.id.ad_view_bottom); } @Override protected void onResume() { super.onResume(); adViewTop.start("108", AdSize.S320x50, 10); adViewBottom.start("108", AdSize.S300x250, 10); } @Override protected void onPause() { adViewTop.stopRefreshTimer(); adViewBottom.stopRefreshTimer(); super.onPause(); } }