Back to project page prim-ftpd.
The source code is released under:
Apache License
If you think the Android project prim-ftpd listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.primftpd; /* w w w. java 2 s. c om*/ import android.app.Notification; import android.app.NotificationManager; import android.content.Context; import android.content.ContextWrapper; public class NotificationUtil { protected static final int NOTIFICATION_ID = 1; public static void createStatusbarNotification( ContextWrapper androidObject, Notification notification) { NotificationManager notiMgr = (NotificationManager) androidObject.getSystemService( Context.NOTIFICATION_SERVICE); notiMgr.notify(NOTIFICATION_ID, notification); } public static void removeStatusbarNotification(ContextWrapper androidObject) { NotificationManager notiMgr = (NotificationManager) androidObject.getSystemService( Context.NOTIFICATION_SERVICE); notiMgr.cancel(NOTIFICATION_ID); } }