Example #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            _activities = new List<SampleActivity>
                              {
                                  new SampleActivity(Resource.String.mapsAppText, Resource.String.mapsAppTextDescription, null),
								  new SampleActivity(Resource.String.basic_map, Resource.String.basic_map_description, typeof(BasicDemoActivity)),
                                  new SampleActivity(Resource.String.activity_label_samplemap, Resource.String.showMapActivityDescription, typeof(MapWithMarkersActivity)),
                                  new SampleActivity(Resource.String.activity_label_mapwithmarkers, Resource.String.showMapWithOverlaysDescription, typeof(SampleMapActivity))
                              };

            ListAdapter = new SimpleMapDemoActivityAdapter(this, _activities);
        }
Example #2
0
        private void InitializeListView()
        {
            if (_isGooglePlayServicesInstalled)
            {
                _activities = new List <SampleActivity>
                {
                    new SampleActivity(Resource.String.mapsAppText, Resource.String.mapsAppTextDescription, null),
                    new SampleActivity(Resource.String.activity_label_axml, Resource.String.activity_description_axml, typeof(BasicDemoActivity)),
                    new SampleActivity(Resource.String.activity_label_mapwithmarkers, Resource.String.activity_description_mapwithmarkers, typeof(MapWithMarkersActivity)),
                    new SampleActivity(Resource.String.activity_label_mapwithoverlays, Resource.String.activity_description_mapwithoverlays, typeof(MapWithOverlaysActivity))
                };

                ListAdapter = new SimpleMapDemoActivityAdapter(this, _activities);
            }
            else
            {
                Log.Error("MainActivity", "Google Play Services is not installed");
                ListAdapter = new SimpleMapDemoActivityAdapter(this, null);
            }
        }