protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_shared);

            arFragment             = (ArFragment)SupportFragmentManager.FindFragmentById(Resource.Id.ux_fragment);
            arFragment.TapArPlane += (s, e) => onTapArPlaneListener(e.HitResult, e.Plane, e.MotionEvent);

            sceneView = arFragment.ArSceneView;

            textView            = FindViewById <TextView>(Resource.Id.textView);
            textView.Visibility = ViewStates.Visible;
            locateButton        = FindViewById <Button>(Resource.Id.locateButton);
            createButton        = FindViewById <Button>(Resource.Id.createButton);
            anchorNumInput      = FindViewById <EditText>(Resource.Id.anchorNumText);
            editTextInfo        = FindViewById <TextView>(Resource.Id.editTextInfo);
            enableCorrectUIControls();

            Scene scene = sceneView.Scene;

            scene.Update += (s, e) =>
            {
                if (cloudAnchorManager != null)
                {
                    // Pass frames to Spatial Anchors for processing.
                    cloudAnchorManager.Update(sceneView.ArFrame);
                }
            };
            MaterialFactory.MakeOpaqueWithColor(this, new Color(Android.Graphics.Color.Red)).GetAsync().ContinueWith(t => failedColor   = (Material)t.Result);
            MaterialFactory.MakeOpaqueWithColor(this, new Color(Android.Graphics.Color.Green)).GetAsync().ContinueWith(t => savedColor  = (Material)t.Result);
            MaterialFactory.MakeOpaqueWithColor(this, new Color(Android.Graphics.Color.Yellow)).GetAsync().ContinueWith(t => readyColor = foundColor = (Material)t.Result);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_anchors);
            basicDemo = Intent.GetBooleanExtra("BasicDemo", true);

            arFragment             = (ArFragment)SupportFragmentManager.FindFragmentById(Resource.Id.ux_fragment);
            arFragment.TapArPlane += (s, e) => onTapArPlaneListener(e.HitResult, e.Plane, e.MotionEvent);

            sceneView = arFragment.ArSceneView;

            Scene scene = sceneView.Scene;

            scene.Update += (s, e) =>
            {
                if (cloudAnchorManager != null)
                {
                    // Pass frames to Spatial Anchors for processing.
                    cloudAnchorManager.Update(sceneView.ArFrame);
                }
                ;
            };
            backButton          = FindViewById <Button>(Resource.Id.backButton);
            statusText          = FindViewById <TextView>(Resource.Id.statusText);
            scanProgressText    = FindViewById <TextView>(Resource.Id.scanProgressText);
            actionButton        = FindViewById <Button>(Resource.Id.actionButton);
            actionButton.Click += (s, e) => advanceDemo();

            MaterialFactory.MakeOpaqueWithColor(this, new Color(Android.Graphics.Color.Red)).GetAsync().ContinueWith(t => failedColor   = (Material)t.Result);
            MaterialFactory.MakeOpaqueWithColor(this, new Color(Android.Graphics.Color.Green)).GetAsync().ContinueWith(t => savedColor  = (Material)t.Result);
            MaterialFactory.MakeOpaqueWithColor(this, new Color(Android.Graphics.Color.Yellow)).GetAsync().ContinueWith(t => readyColor = foundColor = (Material)t.Result);
        }