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

            // Create your application here
            this.VolumeControlStream = Android.Media.Stream.Music;

            SetContentView(Resource.Layout.sample_cam);

            var title = "Test World";

            if (Intent.Extras != null && Intent.Extras.Get(EXTRAS_KEY_ACTIVITY_TITLE_STRING) != null)
            {
                title = Intent.Extras.GetString(EXTRAS_KEY_ACTIVITY_TITLE_STRING);
            }

            Title = title;

            architectView = FindViewById <ArchitectView>(Resource.Id.architectView);

            //TODO: SDK KEY
            var config = new ArchitectView.ArchitectConfig(Constants.WIKITUDE_SDK_KEY);

            architectView.OnCreate(config);

            this.architectView.RegisterSensorAccuracyChangeListener(this);

            this.locationProvider = new LocationProvider(this, this);
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.cam);

            var title = "Exhibit ID:";

            Title = title + Intent.GetStringExtra("id");

            world = "wikitude" + File.Separator + Intent.GetStringExtra("id") + File.Separator + "index.html";

            architectView = FindViewById <ArchitectView>(Resource.Id.architectView);

            var config = new ArchitectView.ArchitectConfig(AppSettings.WikitudeSDKkeyAndroid);

            architectView.OnCreate(config);

            this.architectView.RegisterSensorAccuracyChangeListener(this);
            this.locationProvider = new LocationProvider(this, this);
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Create your application here
            this.VolumeControlStream = Android.Media.Stream.Music;

            SetContentView(Resource.Layout.sample_cam);

            var title = "Test World";

            if (Intent.Extras != null && Intent.Extras.Get (EXTRAS_KEY_ACTIVITY_TITLE_STRING) != null)
                title = Intent.Extras.GetString (EXTRAS_KEY_ACTIVITY_TITLE_STRING);

            Title = title;

            architectView = FindViewById<ArchitectView>(Resource.Id.architectView);

            //TODO: SDK KEY
            var config = new ArchitectView.ArchitectConfig (Constants.WIKITUDE_SDK_KEY);

            architectView.OnCreate (config);

            this.architectView.RegisterSensorAccuracyChangeListener (this);

            this.locationProvider = new LocationProvider (this, this);
        }