/// <summary> /// Loads the app. /// </summary> /// <param name="bundle"></param> protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); Window.AddFlags(WindowManagerFlags.KeepScreenOn); /* AdView ad = (AdView) findViewById(Resource.Id.adView); ad.loadAd(new AdRequest());*/ listen = new MyPhoneStateListener(this); tm = (TelephonyManager) GetSystemService(TelephonyService); tm.Listen(listen, PhoneStateListenerFlags.SignalStrengths); setPhoneInfo(); }
/// <summary> /// Loads the app. /// </summary> /// <param name="bundle"></param> protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); Window.AddFlags(WindowManagerFlags.KeepScreenOn); /* AdView ad = (AdView) findViewById(Resource.Id.adView); * ad.loadAd(new AdRequest());*/ listen = new MyPhoneStateListener(this); tm = (TelephonyManager)GetSystemService(TelephonyService); tm.Listen(listen, PhoneStateListenerFlags.SignalStrengths); setPhoneInfo(); }