/// <summary> /// Registers the service. /// </summary> private void RegisterGPSService() { _gpsServiceConnection = new GPSServiceConnection(_binder); _gpsServiceIntent = new Intent(Android.App.Application.Context, typeof(GPSService)); BindService(_gpsServiceIntent, _gpsServiceConnection, Bind.AutoCreate); Log.WriteLine(LogPriority.Debug, TAG, "RegisterService"); }
private void RegisterService() { try { _gpsServiceConnection = new GPSServiceConnection(_binder); _gpsServiceIntent = new Intent(Android.App.Application.Context, typeof(GPSService)); BindService(_gpsServiceIntent, _gpsServiceConnection, Bind.AutoCreate); } catch (Exception ex) { var err = ex.Message; } }
private void RegisterService() { _gpsServiceConnection = new GPSServiceConnection(_binder); _gpsServiceIntent = new Intent(Android.App.Application.Context, typeof(GPSService)); Activity.BindService(_gpsServiceIntent, _gpsServiceConnection, Bind.AutoCreate); }
private void RegisterService() { _gpsServiceConnection = new GPSServiceConnection(_binder); _gpsServiceIntent = new Intent(Android.App.Application.Context, typeof(GPSService)); BindService(_gpsServiceIntent, _gpsServiceConnection, Bind.AutoCreate); }