I just added an icon to my app using the Android Image Asset Studio using an xml file as the foreground and a plain color as a background. Now in the testing I've done with it, the background of the icon is displaying as the correct color, but the foreground is just the white android logo. I have deleted the app off my phone and reinstalled it in case it was cached as the previous logo, and I don't really know what else to do with it to test it or make it show up correctly, especially since the background changed but the foreground didn't. Any help would be appreciated.
Github link:
www.github.com/jollygreenegiant/WannaCook
Just rename your desired mipmap icon's resource into any name different form ic_launcher
Also make sure you changed the icon name in AndroidManifest.xml
I'm assuming you're testing on API 26+ (not specified in question).
In that case, the Adaptive Icon assets found in your repo (.../res/mipmap-anydpi-v26/) are overriding the PNG icons you hoped to use. This explains why renaming your icon files would resolve the issue, as mentioned in another answer. You can simply remove those files, to correctly resolve the issue. (Or, look into creating your own adaptive icon as described at the link above.)
Your app icon is still mipmap/ic_launcher, and it's foreground is set to the white android icon set by the Android Studio. You should change the code of foreground.
Related
I have recently pushed a React Native app to playstore and used an Icon to represent in playstore.When Dark Mode is enabled my app's playstore Icon's background turns black which makes Icon ugly. Now my doubt is
Do I have to use white background for Icon for all the future apps?
OR
Is there any way to make our Icon to be flexible in both Normal Mode and Dark Mode?
regarding your first question if the issue is only inside of playstore I think light background will not hurt. I dont think google play store offers a way to make this adaptive on their website.
regarding the second one, yes! inside your android project you can place alternative versions of your launcher icon inside of /res/mipmap-night-** resource folder btw it is possible you will need to create it. And also I recommend you actually create /res/mipmap-night-hdpi, /res/mipmap-night-xhdpi etc. to take into account the different screen resolutions. Since you are developing with react you would have to dive into your android project to find the res folder, or alternatively open your project in android studio and you will see it right away. this should change how your app looks on your users home screen
UPDATE
by mistake I had pointed to the drawable-night-** folders in my answer but Launcher icons in android are actually saved in the mipmap folders. I have now corrected this. I also tryed it out and it works (however I had to restart my device for it to take effect. asuming your users dont switch constantly between day and night mode they will always se the right icon for them)
Play Store icon it is a different image that you upload.
Make a complete white (or whatever) background to that image. In the official guidelines, Google says that you shouldn't make a partial background.
There is no "dark" icon in the Google Play Store; if you leave it transparent, it will display the default background color for each state (normal-dark).
I'm trying to update an existing app, it's been a few years since the last update and I've updated Android Studio to the most recent version v3.5.3. Among other things I want to change the app icon, so I've updated all the PNG files.
However, in the emulator it keeps showing the old default icon.
If I understand correctly, there is a new feature since API-26 which allows for something called adaptive app icons, but I can't figure out how to update this icon.
The #mipmap/ic_launcher.xml file seems to be some sort of vector file, which describes paths and strokeWidth and lines to construct the default icon. I tried and searched all over, but I have no clue how customize this type of icon to something with my business logo.
Do I have to turn my custom logo into a vector image? If so, how can I do this? Using which app or utility? Can't I still just use my PNG files like previously?
I have completed my first app and having problem with launcher icon.
I have repalced the default ic_launcher icon in mipmap folder with my own icon.
When i install the app, it shows the correct icon in phone's menu. But when i open application manager in phone , there it shows the default icon.
Also when i open shareit or xender there also my app has default icon.....
I have spent two days searching for answer and tried all suggestions..But none of them are working.....Please give me a solution....
It is bad practice to just overwrite the icon this way. It is advisable to edit the AndroidManifest.xml file. In the application tag you will find android:icon="#drawable/ic_launcher", change it to the icon you want that is placed in the drawable folder. That way it will be applied everywhere.
For more information: How to change the launcher logo of an app in Android Studio?
I'm at a loss trying to find the default icon used for the Settings application launcher under \android-sdk\platforms\android-10\data\res\drawable-mdpi\
What name does this icon have? can I use it in my application? here it is:
2.2:
4.0:
If you're looking for a "settings" button for your app, you can include the system icon in your xml using #android:drawable/ic_menu_preferences. It won't get you the nice, colored version you included above, but makes a perfect settings icon in your menu or ActionBar.
I described way you can retrieve full resolution icon of every app installed on your phone/pad here: Getting App Icon in Android.
So all you need is find package name of this app.
It's not as simple as retrieving standard android icon from android resources, but however it can help you.
I would like my application icon to be available to other applications.
I understand this is a bit unclear so will try explain:
Applications such as Astros program manager lists applications with their icon. For all apps this is the correct icon as on the launcher, except mine which is displaying the standard android icon. I have set my icon as the manifest using: android:icon="#drawable/runninglate"
This works on the launcher but Astro still shows the default icon from when I create the project (which I deleted a long time ago). I have also tried renaming my icon file to icon.png in case this was a standard. This also failed to work.
I am clearly doing something wrong, or have missed a setting somewhere, can some one point me in the right direction.
Make sure you have your icon in the <application> element, perhaps in addition to having it in the <activity> element of the activity that should appear in the Launcher.
Seems it was a caching issue. I re-flashed my phone today for an update and the correct Icon was shown using the same APK as I was using when it wasn't showing. Maybe a clear data on the displaying app was all that was required!