Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admob: How to load AdRequest outside of UI Thread?
- super.onCreate(savedInstanceState){
- mainLayout = new LinearLayout(this);
- mainLayout.setOrientation(LinearLayout.VERTICAL);
- adView = new AdView(this, AdSize.BANNER, "MY_ID");
- adView.setVisibility(AdView.VISIBLE);
- mainLayout.addView(adView);
- adView.loadAd(new AdRequest());
- //more codes below
- }
Advertisement
Add Comment
Please, Sign In to add comment