Class DataUpdateService
- java.lang.Object
-
- Service
-
- de.kaffeemitkoffein.tinyweatherforecastgermany.DataUpdateService
-
public class DataUpdateService extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HIDE_PROGRESS
static java.lang.String
IC_ID
static int
IC_IMPORTANCE
static java.lang.String
SERVICEEXTRAS_CANCEL_NOTIFICATIONS
static java.lang.String
SERVICEEXTRAS_UPDATE_LOCATIONSLIST
static java.lang.String
SERVICEEXTRAS_UPDATE_NOTIFICATIONS
static java.lang.String
SERVICEEXTRAS_UPDATE_TEXTFORECASTS
static java.lang.String
SERVICEEXTRAS_UPDATE_WARNINGS
static java.lang.String
SERVICEEXTRAS_UPDATE_WEATHER
static java.lang.String
SHOW_PROGRESS
static java.lang.String
WARNING_NC_GROUP
static java.lang.String
WARNING_NC_ID
static int
WARNING_NC_IMPORTANCE
-
Constructor Summary
Constructors Constructor Description DataUpdateService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelDeprecatedWarningNotifications()
static Notification
getWarningNotification(Context context, NotificationManager notificationManager, WeatherWarning weatherWarning, java.lang.String sortKey)
static boolean
isConnectedToInternet(Context context)
boolean
launchWeatherWarningNotifications(java.util.ArrayList<WeatherWarning> warnings, boolean discardAlreadyNotified)
IBinder
onBind(Intent intent)
void
onCreate()
void
onDestroy()
int
onStartCommand(Intent intent, int flags, int startID)
-
-
-
Field Detail
-
SHOW_PROGRESS
public static final java.lang.String SHOW_PROGRESS
- See Also:
- Constant Field Values
-
HIDE_PROGRESS
public static final java.lang.String HIDE_PROGRESS
- See Also:
- Constant Field Values
-
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
-
-
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)
-
-