protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            Addr = Intent.GetStringExtra(ExtraKeyAddr);
            if (string.IsNullOrEmpty(Addr))
            {
                Finish();
                return;
            }


            Pref = GaganPreference.Load(this);

            SetContentView(Resource.Layout.Control);

            var toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.controller_toolbar);

            SetSupportActionBar(toolbar);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            SupportActionBar.SetHomeButtonEnabled(true);

            CamView = FindViewById <MjpegView>(Resource.Id.CamView);
            CamView?.SetResolution(640, 480);

            BeginStream();

            //TextMessage = FindViewById<TextView>(Resource.Id.TextConnectMessage);

            //Controller = new GaganController(this);
            //Controller.BcoreConnectionChanged += OnConnectedBcore;
            //Controller.ConnectBcore(Addr);


            //SettingFragment = SettingFragment.newInstance();
            //SettingFragment.Controller = Controller;

            //ControllerFragment = ControllerFragment.NewInstance();
            //ControllerFragment.Controller = Controller;

            //var transaction = FragmentManager.BeginTransaction();
            //transaction.Add(Resource.Id.FrameFragment, ControllerFragment);
            //transaction.Hide(ControllerFragment);
            //transaction.Add(Resource.Id.FrameFragment, SettingFragment);
            //transaction.Hide(SettingFragment);
            //transaction.Commit();
        }