示例#1
0
        void tracker_LocationUpdated(LocationUpdateEventArgs ev)
        {
            var tv = FindViewById <TextView>(Resource.Id.tvLocation);

            tv.Text = string.Format("Lat:{0}; Lon: {1}", ev.Location.Latitude, ev.Location.Longitude);
            var tva = FindViewById <TextView>(Resource.Id.tvLocationA);

            tva.Text = tracker.GetAddress(ev.Location);
        }
示例#2
0
 void tracker_LocationUpdated(LocationUpdateEventArgs ev)
 {
     var tv = FindViewById<TextView>(Resource.Id.tvLocation);
     tv.Text = string.Format("Lat:{0}; Lon: {1}", ev.Location.Latitude, ev.Location.Longitude);
     var tva = FindViewById<TextView>(Resource.Id.tvLocationA);
     tva.Text = tracker.GetAddress(ev.Location);
 }