I'm trying to show a simple local notification message on Android.Here is my code but I'm not able to make it work.
There is no action:
final Context context = this;
Intent intent = new Intent(this, MainActivity.class);
final PendingIntent pIntent = PendingIntent.getActivity(this, (int) System.currentTimeMillis(), intent, 0);
Notification n=new Notification.Builder(context)
.setContentTitle("Nabeeer?")
.setContentText("Iceriiik")
.setContentIntent(null)
.setContentIntent(pIntent)
.setAutoCancel(true)
.build();
NotificationManager notificationManager =
(NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0, n);