My app posts notification while a document is uploaded and successfully uploaded. If post for multiple document uploads, it posts a series of app icons on the android notification bar.
private void updateNotification(String title, String fileId) {
Log.v(TAG, "Updating notification for '" + fileId + "' with content: '" + title + "'");
ApplicationSettings applicationSettings = new ApplicationSettings(mContext);
NotificationManager notifyManager = (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE);
NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext);
builder.setContentTitle(title)
.setContentText(fileId)
.setSubText(applicationSettings.getAccountEmail())
.setSmallIcon(R.drawable.upload_notification);
// Issue the notification
notifyManager.notify(fileId.hashCode() /*notificationId*/, builder.build());
}
How do I group all my app notifications in android under a single notification icon?
I am looking for something like this: