Case study: I need a program that will add a notification at android. And when someone click on the notification it should lead them to my second activity.
I have established a code. The notification should be working, but for some reason it is not working. The
Notification n = new Notification.Builder(this)
.setContentTitle("New mail from " + "firstname.lastname@example.org")
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
// Hide the notification after its selected
As @dmmh said the code wont work without and icon. So after modifying the code with
the project run perfectly.