Class DataUpdateService


  • public class DataUpdateService
    extends Service
    • Field Detail

      • IC_ID

        public static java.lang.String IC_ID
      • IC_IMPORTANCE

        public static int IC_IMPORTANCE
      • WARNING_NC_ID

        public static java.lang.String WARNING_NC_ID
      • WARNING_NC_IMPORTANCE

        public static int WARNING_NC_IMPORTANCE
      • WARNING_NC_GROUP

        public static java.lang.String WARNING_NC_GROUP
      • SERVICEEXTRAS_UPDATE_WEATHER

        public static java.lang.String SERVICEEXTRAS_UPDATE_WEATHER
      • SERVICEEXTRAS_UPDATE_WARNINGS

        public static java.lang.String SERVICEEXTRAS_UPDATE_WARNINGS
      • SERVICEEXTRAS_UPDATE_TEXTFORECASTS

        public static java.lang.String SERVICEEXTRAS_UPDATE_TEXTFORECASTS
      • SERVICEEXTRAS_CANCEL_NOTIFICATIONS

        public static java.lang.String SERVICEEXTRAS_CANCEL_NOTIFICATIONS
      • SERVICEEXTRAS_UPDATE_NOTIFICATIONS

        public static java.lang.String SERVICEEXTRAS_UPDATE_NOTIFICATIONS
      • SERVICEEXTRAS_UPDATE_LOCATIONSLIST

        public static java.lang.String SERVICEEXTRAS_UPDATE_LOCATIONSLIST
    • Constructor Detail

      • DataUpdateService

        public DataUpdateService()
    • Method Detail

      • onBind

        public IBinder onBind​(Intent intent)
      • onCreate

        public void onCreate()
      • onStartCommand

        public int onStartCommand​(Intent intent,
                                  int flags,
                                  int startID)
      • onDestroy

        public void onDestroy()
      • getWarningNotification

        public static Notification getWarningNotification​(Context context,
                                                          NotificationManager notificationManager,
                                                          WeatherWarning weatherWarning,
                                                          java.lang.String sortKey)
      • launchWeatherWarningNotifications

        public boolean launchWeatherWarningNotifications​(java.util.ArrayList<WeatherWarning> warnings,
                                                         boolean discardAlreadyNotified)
      • cancelDeprecatedWarningNotifications

        public void cancelDeprecatedWarningNotifications()
      • isConnectedToInternet

        public static boolean isConnectedToInternet​(Context context)