Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SampleActivity sa = new SampleActivity(Resource.String.basic_map, Resource.String.basic_map_description, typeof(BasicDemoActivity));

            sa.Start(this);
        }
Example #2
0
        protected override void OnListItemClick(ListView l, View v, int position, long id)
        {
            if (position == 0)
            {
                AndroidUri geoUri = AndroidUri.Parse("geo:42.374260,-71.120824");
                Intent mapIntent = new Intent(Intent.ActionView, geoUri);
                StartActivity(mapIntent);
                return;
            }

            SampleActivity activity = _activities[position];
            activity.Start(this);
        }
Example #3
0
 public void UpdateFrom(SampleActivity sample)
 {
     _title.SetText(sample.TitleResource);
     _description.SetText(sample.DescriptionResource);
 }
 public void UpdateFrom(SampleActivity sample)
 {
     _title.SetText(sample.TitleResource);
     _description.SetText(sample.DescriptionResource);
 }