For some odd reason, my project is generating two icons, same name, launches the same project, in the app drawer. I can't figure out what is causing this. Does anyone have any suggestions?
Link to screenshot
The M in the white circle is my default icon. If you view the screenshot, you'll see it appears twice. I've checked the applications area, and it is only installed once.
Do you have two activities in your manifest marked as launch activities? That would cause two different launcher icons to appear.
Related
While I know that there is no native way of changing the ic_launcher in the manifest, I'm wondering if anyone has came across a smart workaround for allowing users to choose the launcher icon that displays within the app launcher.
My current thoughts is that there may be a way to do this using the mipmap resource folder to do something similar.
App Examples
Deliveroo
Monzo
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've successfully implemented dynamic Android launcher icon switching functionality in my app using multiple activity-aliases with different icons and labels associated with them as detailed in this Chainfire blog post on the topic:
http://www.chainfire.eu/articles/133/_TUT_Supporting_multiple_icons_in_your_app/
And in this StackOverflow answer:
https://stackoverflow.com/a/15249542/1007714
This solution, however, only works for the launcher icon found in the app tray and on the homescreen. The problem I now have is that the icon used at the OS level (such as for multi-tasking, the uninstall popup, or the Application Manager listing) remains the original or becomes the default generic Android icon if you haven't set one at the application level in the manifest.
Has anyone found a solution to this, or does everyone who uses this solution just tolerate a mismatch (or absence) in the icon at the OS level?
In my android application I have to use a single icon for four different applications ,that means when I click the main icon then four different app icons has to be appear and when I click an app icon a different application has to be opened for each icon.
and
when I installed the new applications the app icon has to be created under the main icon only.
Is it possible ?
If yes how?
Can you not bundle them all into one apk, then have your first activity shown as a menu screen that has 4 icons, when you click on one it takes you to the relevant activity?
I know this is a bit of a workaround, and it wouldn't work if the apps for example have to be installed seperatley but was just a thought.
My first approach would be to do this with a widget:
http://developer.android.com/guide/topics/appwidgets/index.html
You could open a dialog with it and send an intent depending on choice that the desired application can handle.
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!