Gmail, Android 7.
, ( ), - , , -:
Bundle extras = statusBarNotification.getNotification().extras;
extras.get(Notification.EXTRA_BIG_TEXT) == null ? null : extras.get(Notification.EXTRA_BIG_TEXT).toString();
This way you always get either String or null, even if the value you are looking for is not initially a string. This is because the call getString(Notification.EXTRA_BIG_TEXT)will directly return null, at least in some cases.
If there are other values, you do not know where they can be saved, you can try to iterate through the whole set of additional services as described here .
source
share