Make android app icon available to other applications - android

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!

Related

Giving users options to change the launcher icon

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

Find componentInfo name for custom icon

I have been trying to customize ameixa, an open-source icon pack to add some missing icons.
The source I base myself on with can be found here.
I do not intend to add new icons (yet), only to re-use existing ones for some applications that are not supported yet.
For that purpose, I have been adding entries to src/main/res/xml/appfilter.xml
In order to find the ComponentInfo's name, I have been using openlauncher's "hide apps" feature, which gives me the full package name and activity of apps he can see (for instance, com.myapp.app/com.myapp.app.activity.Activity).
My problem is that some of the apps I use don't mention an activity name, but only the app (for instance, com.myapp.app/). I have tried using both this, as well as some obvious activity names (com.myapp.app/com.myapp.app.(App/acitivity.MainActivity...), but none of those worked.
By trying to compare with some other apps that already are shown without a right-hand definition in the already-existing source code, I don't see an obvious pattern to try.
Do any of you know how I can figure out the exact ComponentInfo name I need to enter to a given app icon ?
I ended up figuring out a solution, maybe not the best but it works.
I have been building locally my own version of openlauncher (any other launcher should do), and checked in the code where the list of app is built.
By putting a breakpoint there and debugging my application, I could access the properties "package name" and "activity name" which are enough as a name for the ComponentInfo definition.
Maybe there is a faster/easier way to achieve that, but that's what ended up working for me.
One option is to download Nova Launcher. Long press on an icon to bring up a menu, and then press "Edit". This will show the icon along with the ComponentInfo below it. You can long press on this to copy the text.

Android app icon foreground defaulting to android logo

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.

Partially changed launcher icon of android app

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?

How to correct Android icon mismatch when using activity-alias to dynamically change launcher icon?

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?

Categories

Resources