2

How to view notification icon What i put it programmatically not view app icon android >= marshmallow, in android 5 and 4.. icon appear normally but in android 6 ,7 it appear app icon any one know the problem?

Lila saad
  • 261
  • 2
  • 8
  • you should put some code here? – phpdroid Sep 17 '17 at 06:57
  • did you use `setSmallIcon` and `setLargeIcon`? – Mehran Zamani Sep 17 '17 at 07:04
  • You should create `drawable-v21` folder and put your notification icon in this folder. If it doesn't resolve your problem. You can visit this one: https://stackoverflow.com/questions/28387602/notification-bar-icon-turns-white-in-android-5-lollipop or this one: https://stackoverflow.com/questions/30795431/icon-not-displaying-in-notification-white-square-shown-instead – John Le Sep 17 '17 at 07:56
  • I use :Notification notification = new NotificationCompat.Builder(this) .setContentTitle("Hello") .setSmallIcon(R.drawable.clock) .setPriority(Notification.PRIORITY_MIN) .setContentIntent(pendingIntent) .setOngoing(true).build(); – Lila saad Sep 17 '17 at 10:39

0 Answers0