コード例 #1
0
        void SampleSelected(object sender, AdapterView.ItemClickEventArgs e)
        {
            var position = e.Position;

            if (position == 0)
            {
                var geoUri    = AndroidUri.Parse("geo:42.374260,-71.120824");
                var mapIntent = new Intent(Intent.ActionView, geoUri);
                StartActivity(mapIntent);
                return;
            }
            Dictionary <double, double> list = new Dictionary <double, double>
            {
                { 51.507351, -0.127758 }
            };

            Intent intent = new Intent(this, typeof(MapWithMarkersActivity));

            //   intent.PutExtra("User", JsonConvert.SerializeObject(list));
            intent.PutExtra("locationCode", 1);
            //intent.PutExtra("cordinate",)
            this.StartActivity(intent);



            // var sampleToStart = SampleMetaDataList[position];
            //sampleToStart.Start(this);
        }
コード例 #2
0
        void SampleSelected(object sender, AdapterView.ItemClickEventArgs e)
        {
            var position = e.Position;

            if (position == 0)
            {
                var geoUri    = AndroidUri.Parse("geo:42.374260,-71.120824");
                var mapIntent = new Intent(Intent.ActionView, geoUri);
                StartActivity(mapIntent);
                return;
            }


            var sampleToStart = SampleMetaDataList[position];

            sampleToStart.Start(this);
        }