Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            mMediaRouterCallback = new MediaRouterCallback(this);

            mTextStatus = FindViewById <TextView> (Resource.Id.textStatus);

            // get the list of background colors
            mColors = Resources.GetIntArray(Resource.Array.androidcolors);

            // Enable clicks on the 'change color' button
            mButton        = FindViewById <Button> (Resource.Id.button1);
            mButton.Click += delegate {
                ShowNextColor();
            };

            // Get the MediaRouter service
            mMediaRouter = (MediaRouter)GetSystemService(Context.MediaRouterService);
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			SetContentView (Resource.Layout.Main);

			mMediaRouterCallback = new MediaRouterCallback (this);

			mTextStatus = FindViewById <TextView> (Resource.Id.textStatus);

			// get the list of background colors
			mColors = Resources.GetIntArray (Resource.Array.androidcolors);

			// Enable clicks on the 'change color' button
			mButton = FindViewById <Button> (Resource.Id.button1);
			mButton.Click += delegate {
				ShowNextColor();
			};

			// Get the MediaRouter service
			mMediaRouter = (MediaRouter) GetSystemService (Context.MediaRouterService);
		}