List of usage examples for android.service.notification NotificationListenerService getActiveNotifications
public StatusBarNotification[] getActiveNotifications()
From source file:com.achep.acdisplay.notifications.NotificationListenerJellyBeanMR2.java
@SuppressWarnings("BooleanMethodIsAlwaysInverted") @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2) private boolean postActiveNotifications(@NonNull NotificationListenerService service) { StatusBarNotification[] an = service.getActiveNotifications(); if (an == null) return false; NotificationPresenter np = NotificationPresenter.getInstance(); np.init(service, an);//from www. j a v a 2 s . co m return mInitialized = true; }