I\'m using the >=4.3 NotificationListenerService
to access notifications. On the first start, my app takes the user to the \"Access Notifications\" system panel
Works well with slightly modified @Damians answer
public class NotifyListener extends NotificationListenerService{
public static boolean listnerConnected = false;
@Override
public IBinder onBind(Intent intent) {
Log.d(name,"onBind Called");
listnerConnected = true;
return super.onBind(intent);
}
@Override
public void onDestroy()
{
super.onDestroy();
Log.e("destroy", "called");
listnerConnected = false;
}
}