protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.LocationTest); Title = GetString(Resource.String.menuLocation); timeLabel = FindViewById<TextView>(Resource.Id.timeLabel); positionLabel = FindViewById<TextView>(Resource.Id.positionLabel); startButton = FindViewById<Button>(Resource.Id.startButton); startButton.Click += StartPositioning; locationService = new LocationTestService(this); locationService.LocationChanged += LocationService_LocationChanged; }
public override void ViewDidLoad() { base.ViewDidLoad(); locationService = new LocationTestService(); locationService.LocationChanged += LocationChanged; }