Android launcher icon update problem, xiaom mi mix 2s - android

I have some test png image and I want to use it as launch icon.
I used Image Asset in Android Studio for that.
This files were created.
Manifest:
<application
android:allowBackup="false"
android:icon="#mipmap/icon_famous_p"
android:label="#string/app_name"
android:roundIcon="#mipmap/icon_famous_p_round"
android:supportsRtl="true"
android:theme="#style/Theme2">
I tested this on several devices (api from 17 t0 28) and everything was ok, I got icon. I have already tested the app on this devices before. The same story with virtual devices - everything is ok.
But on my own phone, xiaomi mi mix 2s (api 28) I can't get my icon. I get some small icon instead.
I tried to del app before install, to reboot the phone and so on but the problem didn't solve
Update. I found out that icon doesn't change on api > 26- if you load first image, it doesn't change after changing res in Android Studio

Related

Flutter Launch Icon Doesn't Change

I found lots of questions about this but I have a different problem. The launch icon is not refreshing on a specific phone with Android 10. I tried to changed it and installing it again and does work. The good thing is that on another phone with Android 7 works perfectly fine, even changing the icon.
It's clearly a phone cache problem. The Same flutter app on two different devices present different icons.
This didn't worked:
Uninstalling the App
Shutting down the phone
Turning on the phone
Installing the app
Tried with Visual Studio Code, Android Studio and the Cmd console, it doesn't work. I hoped that the release installation will work but nope.
Any ideas?
Found the problem.
My Android manifest has:
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
For Android 10 it was taking the ic_launcher_round, and for the Android 7 the ic_launcher. I would like to know if there is some kind of configuration to change this or it is an Android fixed thing.

App logo not showing on different devices

I have a samsung phone and a Motorolla phone. On my Samsung phone my propgrammed and set custom app icon is used and displayed. On my Motorolla this is not the case. Instead the default android logo remains. Any clue why this is?
follow these steps :
1) add app icon in mipmap folder with different sizes
2) In Menifest.xml set android:icon="#mipmap/app_icon" and android:roundIcon="#mipmap/app_icon"
^ Make sure you have added android:roundIcon="#mipmap/ic_launcher_round" in manifest file

Android Image Assets (Icon) not Showing on Some Phones

I have added a new Image Asset to my build, tested it on virtual and physical devices, then pushed as a Beta to the Play Store. Everything is checking out on my end, but one of my testers is saying that the app icon is not showing up!? He's using a Google Pixel phone running Android 8.0. Does anyone know what could be causing this?
Android Oreo requires few versions of your icon, and you have to create adaptive icon
https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive.html
1. Select app folder from your project
2. Select File → New → Image Asset
3. On "Foreground Layer" choose the path of your image and resize in order to get the proper aspect for the icon
4. On “Background Layer" use the provided background color
5. Click on Finish and mipmap icons are created in different sizes
In your manifest file do the following changes
<application
...
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
...>
</application>
Source: How to create adaptive icons for android

app's shortcut icon not updated after upgrading the app in samsung galaxy S3

I recently updated my app's icon picture. But the shortcut icon in Samsung Galaxy S3 phones are not updated accordingly. Other models work fine with updated icons.
Here is how I updated the icon in my project (kinda trivial):
- Replaced the old ic_launcher.png in all drawable-* directories with new pictures;
- Ran the app through IDE;
the codes in the project is also trivial:
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" > ... </application>
It looks like a model-specific bug for Samsung Galaxy S3.
The spec for this phone:
Model: SPH-L710.
Android Version: 4.1.2(API 16).
Carrier: Sprint.
My question is:
Is there anyway to update the shortcut icon in this specific model? If no, is there any way to remove that icon with the old icon grammatically?
Thanks in advance !

Android Launcher Icon not working

I have an Android app that I am currently developing. I have created icons (.png) and placed them in the /res/drawable-hdpi (and ldpi & mdpi) folders. In my manifest I have
<application android:icon="#+drawable/icon" android:label="#string/app_name">
my icons are all named icon.png.
I have compiled the source and when I run it on the emulator, the icon shows up in the desktop launcher. But when I copy the apk to my actual phone, the desktop launcher shows the default package icon rather than my custom icon. Although, funny enough when I am actually installing the app, the package manager does show the icon. But once it is installed, the icon does not show.
How do I make my application icon show up as the launcher icon?
Skip
remove the "+" in "#+drawable/icon"
I had the same problem, and I never used the "+" in the manifest.
Rebooting&wiping emulator or restarting Eclipse did not work for me.
I simply solved renaming all the icon.png files to something different (e.g. iconq.png).
I just had the same issue. I renamed my icon to launch_icon and restarted Eclipse. Not sure which one did the trick but it worked after that
It's possible to have different icons set for different components (ie Activity and Service). Make sure that you have the icon only defined for the application element, and nothing else. This will guarantee that all components will have a the same icon, the one defined in the application.
For some reason it was the ROM I had on my phone (it was a gingerbread MIUI ROM). I put a new ROM on my phone today and it works fine. Strange.
I had a similar problem. I am running a custom rom (Cyanogen mod 7), and my solution was to simply reboot my device. After that, the icon appeared.
Make sure that the Intent of your Launcher Activity is named MAIN
i.e,
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Moreover, add the icon to your Drawable folders and then refer it in the application block of Manifest.
<application
android:allowBackup="true"
android:icon="#drawable/icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
In my case, I was testing in a Nexus 5X device with the Android Nougat and the icon was correct, but in the emulator on the same android version but with the Pixel Launcher, the default icon were shown.
I saw that in my case I forgot to replace the android:roundIcon property in the manifest to use the new one.
Round Icon Resources
Apps can now define circular launcher icons, which are used on devices that support them. When a launcher requests an app icon, the framework returns either android:icon or android:roundIcon, depending on the device build configuration. Because of this, apps should make sure to define both android:icon and android:roundIcon resources when responding to launcher intents. You can use Image Asset Studio to design round icons.
You should make sure to test your app on devices that support the new
circular icons, to see how your circular app icons look and how they
are displayed. One way to test your resources is to run the Android
emulator and use a Google APIs Emulator System targeting API level 25.
You can also test your icons by installing your app on a Google Pixel
device.
For more information about designing app launcher icons, see the
Material Design guidelines.
https://developer.android.com/about/versions/nougat/android-7.1.html#circular-icons

Categories

Resources