Jika ada masalah dengan pemberitahuan yang ingin saya tampilkan di bilah pemberitahuan. Meskipun saya mengatur bendera notifikasi ke Notification.DEFAULT_LIGHTS & Notification.FLAG_AUTO_CANCEL
notifikasi tidak hilang setelah mengkliknya. Ada ide yang saya lakukan salah?
NotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
int icon = R.drawable.icon;
CharSequence tickerText = "Ticker Text";
long time = System.currentTimeMillis();
Notification notification = new Notification(icon, tickerText, time);
notification.flags = Notification.DEFAULT_LIGHTS & Notification.FLAG_AUTO_CANCEL;
Context context = getApplicationContext();
CharSequence contentTitle = "Title";
CharSequence contentText = "Text";
Intent notificationIntent = new Intent(this, SilentFlipConfiguration.class);
PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
mNotificationManager.notify(1,notification);
mNotificationManager.notify(1,notification);
dan using NotificationBuildermNotificationManager.notify(1, mBuilder.build());
? Terima kasih.