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); }
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); }
public void UpdateFrom(SampleActivity sample) { _title.SetText(sample.TitleResource); _description.SetText(sample.DescriptionResource); }