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
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 need a home screen clone app that uses apps, folders, swipable screens of more apps and so on.
So far, I have looked into custom launchers like this one here: https://www.androidauthority.com/make-a-custom-android-launcher-837342-837342/
But to achieve what I need will require a lot of extra additions (the icons are easy enough, but I'll need folders and swiping as well).
Another approach I wondered about is Kiosk mode/Lock-Task-Mode and multi-app kiosk mode. I've looked at the docs and wondered if this could be used to harness the actual homescreen, while still executing code in the background based on what apps the user selects (ultimately acheiving the same desired effect of my project).
I've spent a full day looking at this but I want to know if I'm on the right path. Obviously, I could create an app that contains all of this, but I do think I want it to be a launcher app that's locked in place so that users can't operate the actual home screen and its apps. No malicious intent here, it's just for a closed-off research project.
Any insight is greatly appreciated.
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?
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!