-1

I already doing anything on tutorials on stack overflow.

add icon and logo on a manifest, uninstall an old app, rename image asset, restart the phone, but it does not work.

Its default logo is displaying on APK, App setting, and Notification. But New Logo displaying only on the home launcher.

I want all icon to get change with a new icon.

This error looks like this:

Its look like this

EDIT

This is my code for notification:

var mBuilder = NotificationCompat.Builder(this)
            .setSmallIcon(R.mipmap.app_icon)
            .setContentTitle("My notification")
            .setContentText("Hello World!")
            .setPriority(NotificationCompat.PRIORITY_DEFAULT)

        var mNotificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager;

        mNotificationManager.notify(1, mBuilder.build())

My phone is Xiaomi 4A, Android Marshmallow. I use Kotlin for my code.

My point is, I tried to change my apps icon. My apps icon was changing on a home launcher. but on APK Icon, Apps Setting Icon, and notification Icon was not changing and still using default green with Android head Icon. Why some icon still use default icon? what's wrong with me??

Dita Aji Pratama
  • 612
  • 11
  • 27

2 Answers2

0

As documentations says , the notification icon size should be 48*48 .
i have faced this issue before and i solve it with this code
private int getNotificationIcon() { boolean whiteIcon = (Build.VERSION.SDK_INT>=Build.VERSION_CODES.LOLLIPOP); return whiteIcon ? R.drawable.ic_launcher_2:R.mipmap.ic_launcher; }

Amjad Alwareh
  • 1,922
  • 17
  • 21
0

If you use MIUI, disable MIUI optimization in developer settings.

Dita Aji Pratama
  • 612
  • 11
  • 27