public class NotificationListenerExampleService extends NotificationListenerService {
@Override
public IBinder onBind(Intent intent) {
return super.onBind(intent);
}
@Override
public void onNotificationPosted(StatusBarNotification sbn){
//I am sucessfully Receiving Notification
}
@Override
public void onNotificationRemoved(StatusBarNotification sbn){
}
}
Я могу читать содержимое уведомлений с помощью onNotificationPosted (). Как нажать кнопку «Отметить как прочитанную» в уведомлении?