Guest User

Untitled

a guest
Apr 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. using Android.App;
  2. using Android.Content.PM;
  3. using Android.Gms.Ads;
  4. using Android.OS;
  5.  
  6. namespace DemoAdMob.Droid
  7. {
  8. [Activity(Label = "DemoAdMob", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
  9. public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
  10. {
  11. protected override void OnCreate(Bundle bundle)
  12. {
  13. TabLayoutResource = Resource.Layout.Tabbar;
  14. ToolbarResource = Resource.Layout.Toolbar;
  15.  
  16. base.OnCreate(bundle);
  17.  
  18. MobileAds.Initialize(ApplicationContext, "SEU ID ANDROID");
  19.  
  20. global::Xamarin.Forms.Forms.Init(this, bundle);
  21. LoadApplication(new App());
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment