de.unikassel.android.sdcframework.util
Class NotificationUtils
java.lang.Object
de.unikassel.android.sdcframework.util.NotificationUtils
public class NotificationUtils
- extends Object
Class providing notification utility functions
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationUtils
public NotificationUtils()
serviceNotification
public static final void serviceNotification(int id,
String message,
Context context,
boolean vibrate,
boolean autoCancel,
Class<?> activityClass)
- Does create a service notification
- Parameters:
id - the notification id to usemessage - the messagecontext - the application contextvibrate - does set vibration defaultautoCancel - does set auto cancel flagactivityClass - class of the activity to notify on selection
cancelServiceNotification
public static final void cancelServiceNotification(Context context,
int id)
- Does cancel a notification by id
- Parameters:
context - the application contextid - the notification id to cancel