I listen for notifications like WhatsApp Messages.
But every time a notification comes in the NotificationListenerService fire twice.
Does anyone know this p
Using Split you can achieve this thing.
String[] separated = Your Notification key.split("\\|"); if (!separated[3].equalsIgnoreCase("null")){//Add Your Data in list or DB }