Ejemplo n.º 1
0
 /// <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");
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
0
 private void RegisterService()
 {
     _gpsServiceConnection = new GPSServiceConnection(_binder);
     _gpsServiceIntent     = new Intent(Android.App.Application.Context, typeof(GPSService));
     Activity.BindService(_gpsServiceIntent, _gpsServiceConnection, Bind.AutoCreate);
 }
Ejemplo n.º 4
0
 private void RegisterService()
 {
     _gpsServiceConnection = new GPSServiceConnection(_binder);
     _gpsServiceIntent = new Intent(Android.App.Application.Context, typeof(GPSService));
     BindService(_gpsServiceIntent, _gpsServiceConnection, Bind.AutoCreate);
 }