I have problem with notification system , why not show up with some devices like modern devices ?
Intent intent = new Intent(this, TestClass.class);
Notification n = new Notification.Builder(this)
.setContentTitle(getResources().getString(R.string.app_name))
.setContentText(getResources().getString(R.string.notification_content_text))
.setSmallIcon(R.drawable.notification_small_icon)
.setContentIntent(PendingIntent.getActivity(this, 0, intent, 0))
.setAutoCancel(true)
.setOngoing(true)
.build();
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
notificationManager.notify(0, n);
I had tried with this problem via another subjects but useless , I hope you can help me.