Beispiel #1
0
        private void WeatherServiceStart(ServiceApi api)
        {
            var serviceType = typeof(WeatherService);

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

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