Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class DefaultActivity extends DroidGap
- {
- private static final String AdMob_Ad_Unit = "xxxxxxxxxxxxxxxxxxxxxxxxx";
- private AdView adView;
- public void onCreate(Bundle savedInstanceState)
- {
- super.onCreate(savedInstanceState);
- super.setIntegerProperty( "splashscreen", R.drawable.splash );
- super.loadUrl("file:///android_asset/www/index.html", 1000);
- adView = new AdView(this, AdSize.BANNER, AdMob_Ad_Unit);
- LinearLayout layout = super.root;
- layout.addView(adView);
- AdRequest request = new AdRequest();
- adView.loadAd(request);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement