de.unikassel.android.sdcframework.util
Class NotificationUtils

Package class diagram package NotificationUtils
java.lang.Object
  extended by de.unikassel.android.sdcframework.util.NotificationUtils

public class NotificationUtils
extends Object

Class providing notification utility functions


Constructor Summary
NotificationUtils()
           
 
Method Summary
static void cancelServiceNotification(Context context, int id)
          Does cancel a notification by id
static void serviceNotification(int id, String message, Context context, boolean vibrate, boolean autoCancel, Class<?> activityClass)
          Does create a service notification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationUtils

public NotificationUtils()
Method Detail

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 use
message - the message
context - the application context
vibrate - does set vibration default
autoCancel - does set auto cancel flag
activityClass - 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 context
id - the notification id to cancel