Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App icon in Android 10 sometimes is wrong

I recently updated my phone to Android 10.

I discovered, that there sometimes is problem for my app icon, cause instead of real one, there is showing default one. Usually it happens after app installation, when I am opening it, then minimising that and then viewing it from active apps view.

Is there something, that I need to add in AndroidManifest.xml or it is just some Android 10 bug? Cause everything is okay on other API versions!

enter image description here

like image 270
Andris Avatar asked Sep 19 '25 11:09

Andris


1 Answers

In your manifest there is two lines for set icons of your applications

(1) android:icon for simple icons

(2) android:roundIcon it will set rounded icon

for same icon you have to set image in both fields as below

        android:icon="@drawable/logo"
        android:roundIcon="@drawable/logo" // for best result set your applications rounded logo
like image 195
YuvrajsinhJadeja Avatar answered Sep 22 '25 04:09

YuvrajsinhJadeja