protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); NotificationService ns = new NotificationService(); StatusBarNotification[] sbn = ns.getActiveNotifications(); if (sbn != null) { Log.i("XXXXXX", "Lenght: " + sbn.length); } else { Log.i("XXXXXX", "Null" ); } }
Notification Access
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)