App started to crash after changing an icon - android

Once I changed an icon of my app by right clicking on res folder and going to New>Image asset, app started to crash on my Android 6.0 device. Then I watched a video that says that the 1st option "Launcher icon (Adaptive and Legacy)" is for Android 8.0 and I didn't understand what he said. And he said that "Launcher icon (Legacy only)" is for Android 7.1.1 and below. So, then I thought that the problem was that I used "Launcher icon (Adaptive and Legacy)" and my device is Android 6.0. Fortunately, I had backed up "mipmap" folders of default icon. But once I changed to default icon, my app is still crashing. Where a problem could be?

Related

How to configure Toast icon in Android 12?

Starting with Android 12, Google show a toast message with an app icon.
My application have launcher icon. Android 12 splash screen show app icon correctly.
Show toast by code
Toast.makeText(this, "Show simple toast", Toast.LENGTH_LONG).show()
compileSdkVersion/targetSdkVersion 31
android emulator Google play Intel x86 Atom_64 System Image API Level 31, Revision 8.
How can i change this default toast icon?
For me a simple restart of the device did the trick.
I had not restarted my test phone after the update to Android 12 at all. I experienced the same odd bug that a generic app icon was shown in Toasts issued by my app. I tried changing the Manifest as Mickaël‘s answer suggested. No luck. I ended up with the exact same Manifest the app had before I started debugging … and then I restarted the device. My app now displays the correct icon in Toasts reliably. What happened? Unsure. I suspect that a restart may trigger an icon cache refresh that crawls all installed apps in search for new/updated app icons.
Seems like this issue was reported to Google, and assigned to a Google engineer:
https://issuetracker.google.com/issues/202863198
From me the restart of the phone work as well. The toasts now show the proper App Icon, configured in my apps. If it does not work for you please review this statement and check if everything is properly set for you app icon. I hope that this will help :)
https://developer.android.com/studio/write/image-asset-studio
PS: There is one more place from which you can build your app icons https://romannurik.github.io/AndroidAssetStudio/index.html
After running a few tests, I found that setting <application android:icon="#drawable/ic_stat_name" ... with a drawable generated with Image Asset > Notification Icons is overriding the default toast icon.
However, this doesn't work with a drawable generated as Image Asset > Launcher Icons. So at this point, I guess something is missing in Android Studio's generation tool.

Some drawables doesn't show up

Some drawables not showing in design window in android studio.
but it shows up normally when I build app in my phone ;/

How to change icon in Android running app view

I've added a custom launcher (adaptive and legacy) icon by building it in Image Asset Studio, but cannot figure out how to change the "running apps" view icon. New projects have the green icon, while the app I created a custom launcher now has a blue icon (which is not the custom icon I built) in the running apps view. How is this icon changed?
This appears to be an emulator problem. I tested on a physical device and the blue icon was replaced with my custom icon. For those in the future that have built an icon with Image Asset Studio and are running into this problem, either test again on a physical device or create a new AVD.

Android - app image is blank

I have created an android app. For past 1 month the android app icon that shows on menu of android mobile was fine, but don't know why the app icon shown on menu of the mobile is black (no icon was shown). The app name is being shown but app icon is not shown.
The below shown screen shots are my Manifest file code and structure of my app icons in mipmap folder.
Why was my app icon not visible ?
Thank you in advance
You can try out following :
1) Check for your all icons are proper and same in all dimensions that is hdpi ,xhdpi etc.
2) Uninstall your app and then again install it
3) Change all your icons with some other icons and then check is it showing proper icon or issue is still there.

Android application home screen icon showing default android icon?

My applications are behaving oddly when deploying them on the phone. The application icon shows correctly in the applications drawer but in the home screen they show a default android icon. I think this has started happening since I updated to last android studio but I'm not sure of it. Before, everything was ok.
I have been researching this issue but could not find any info about it. Is anyone suffering from this problem? Have you found a solution?
Cheers.
I have seen this on some devices that appear to cache the app icon. In my experience deleting the app from the device and reinstalling has always cured it. This doesn't seem to be a problem when the app icon changes and the app is installed from Google Play, but only when installed via adb, so I don't believe users should see this problem.
I can not comment due to low reputation, so I'm asking that did you place the icon in following folder:
mipmap-mdpi
mipmap-hdpi
mipmap-xhdpi
mipmap-xxhdpi
if not then place your icon in these folder and check.
because now launcher icon should in these folders.
Hope this helps.
Thanks

Categories

Resources