awesomefere.blogg.se

Android studio icon still has old background
Android studio icon still has old background







android studio icon still has old background

I have to copy the icon.png into android/icon-foreground.png first, then also copy the resulting files into the mipmap directories. I do ionic build -prod -release & npx cap sync & npx cap copy android & npx cap open androidĪnd then look in my android/app/src/main/res/mipmap-* directories where in each I see ic_launcher_.png files, but they are the default ionic images, not my images.Īnd, when I install the app on my android phone, the desktop icon is the ionic images, not my new images. When I inspect these files, they are my new icons, in various sizes. In my resources/android/icon directory, I have: $ file *ĭrawable-hdpi-icon.png: PNG image data, 72 x 72, 8-bit/color RGBA, non-interlacedĭrawable-ldpi-icon.png: PNG image data, 36 x 36, 8-bit/color RGBA, non-interlacedĭrawable-mdpi-icon.png: PNG image data, 48 x 48, 8-bit/color RGBA, non-interlacedĭrawable-xhdpi-icon.png: PNG image data, 96 x 96, 8-bit/color RGBA, non-interlacedĭrawable-xxhdpi-icon.png: PNG image data, 144 x 144, 8-bit/color RGBA, non-interlacedĭrawable-xxxhdpi-icon.png: PNG image data, 192 x 192, 8-bit/color RGBA, non-interlaced I am still stuck on this problem (school year is over, so I’m back to try to get this to work)… It sure would be great if the ionic folks made one thorough and maintained page which describes exactly what to do, and how to figure out what is wrong when it doesn’t work.Ĭan anyone help me? What am I doing wrong? There are a bunch of tutorials out there and none of them seem to agree. My app builds in Android Studio and I install it on my connected phone.Īnd, the icon is still the same old ionic icon… I run my build ( ionic build -prod -release & npx cap sync & npx cap open android) I didn’t mess with the splash screen stuff yet because I thought I’d get the first thing working first. (I also tried cordova-res android -skip-config -copy) I run cordova-res and I see the new icons in the resources/android/icons directory. Sudo npm install -g cordova-res -unsafe-perm I installed cordova-res (which was not easy since this is a capacitor project – why is there no capacitor-res command?). I created an icon.png, size 512x512 and put it the resources/ directory. I’ve followed every tutorial/instructions on the ionic site and elsewhere to get a custom desktop icon on my android phone for my app, but nothing seems to work. Why does getting a custom icon and custom splash screen image have to be so difficult?









Android studio icon still has old background