Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        /// <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();
        }