Dismiss Heads Up notification and create a normal one
I'm using this code to create a Heads Up notification. private static void showNotificationNew(final Context context,final String title,final String message,final Intent intent, final int notificationId, final boolean isHeaderNotification) { NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context.getApplicationContext()) .setSmallIcon(R.drawable.prime_builder_icon) .setPriority(Notification.PRIORITY_DEFAULT) .setCategory(Notification.CATEGORY_MESSAGE) .setContentTitle(title) .setContentText(message) .setWhen(0) .setTicker(context.getString(R.string.app_name));