Exemplo n.º 1
0
        private void WeatherServiceStart(ServiceApi api)
        {
            var serviceType = typeof(WeatherService);

            if (api.ExistsAppWidget(this) && !WeatherService.IsServiceRunning)
            {
                api.StartService(this, new Intent(this, serviceType));
            }
        }
Exemplo n.º 2
0
        private void GeoTrackingServiceStart(ServiceApi api)
        {
            var serviceType = typeof(GeoTrackingService);

            if (!GeoTrackingService.IsServiceRunning)
            {
                api.StartService(this, new Intent(this, serviceType));
            }
        }