How can I prevent the generic app icon from showing? - android

I use a Nexus 6P (Oreo) and a Pixel 2 (Pie). I've seen this behavior on both. I've even seen it once briefly for Google Maps.
Sometimes, instead of the actual app icon, I'll see the generic Android head on a green background. It happens in the app drawer, on the home screen, or in app switcher. It's random, rare and hard to reproduce, and it happens briefly. I might be scrolling through the app drawer, suddenly realize my app's icon was wrong, scroll back to look at it--and it looks right. But every other time I scroll through the app drawer the icon is fine.
I can't see anything wrong we're doing with our app icon, and it happens rarely. But today I saw it happen (briefly) for Google Maps, which makes me wonder if it's a Google bug.
Any more insight on this issue? Or if it is something I can control, what can I do to prevent it from happening?
Edit: managed to get a screenshot of it in action. In this case it's from the app switcher (ignore the colored background around the green icon). As I noted though, it can happen on the home screen or in the app drawer, and it's not always limited to my app. In this case, the next time I used the app switcher, the normal app icon appeared, so it's quite random.

Remove all-dpi xml file from res > mipmap > ic_launcher and res > mipmap > ic_launcher_round or create custom xml for your app icon. (I would just suggest removing it.)
Here's how you can make your own adaptive icon.

Related

Remove launcher app icon background

I've been developing an app to android for a while and I've been trying different devices with multiple screens dimensions and different OSes.
I was testing the app within a Wiko Robby and I've noticed that the app icon had a background added that on previous devices weren't present.
The right side icon is owned by the OS, whilst the left one is mine. The background I would like to remove is that subtle rounded corner box background that was added the the background of the icon.
I've been searching and what I want can be achieved by installing 3rd party apps to edit the OS theme, but I don't want to do that, nor asking the users to do so.
Is there anyway I can remove the background?
This is not possible, unfortunately. This feature is entirely managed by the home screen and developers have no control over it.
I don't think that you should worry about it, though. The user is probably used to see this background behind 3rd party app icons and he will probably not even notice it on your app. I would even argue that it can be disturbing for the user if your icon was displayed without this background, as this could led him to believe that your app is a system app.

How to get rid of the "home+ return" bar?

I have an android app which does run full screen .. done by the mainifest file
Works fine on units with seperate buttons like Samsung s3
Now running the same app on another unit without physical buttoms they will apear in the buttom of the screen see the red cirkel on attached image
I need a hint to remove this bar in code?
http://i44.tinypic.com/35ba1lj.jpg (image)
You cannot remove this bar for security and usability reasons.
Doing so would make it impossible for the user to exit your app naturally, as both the back and the home button will disappear. Not only is this terrible for usability and system consistency, but it also poses a security risk as malicious apps can take over the system by removing the bar.

Fade out SystemBar

I know this question was asked about 10 times here but none of them came to a solution. I don't want to use the low light SystemBar Mode I want it completely to fade out. And this is possible! The default launcher that comes with Chinese Rockchip devices does this. (It looks like the systembar just flies away into the middle of the screen). Any (new) ideas?
Since API 17 this is directly possible, just select FullScreen Activity when developing an app with Eclipse.

How to display balloon counter over application launcher icon on android

I would like to make an icon counter for andoid just like the Email and the Samsung Apps applications i have seen such requests from other developers, but you all say it can't be done.
if so how come those 2 apps and other apps can do it?
do i have to make like more than one icon image and swap them or something?
is it really cant be done and why?
thanks.
you all say it can't be done.
That is because it cannot be done, except by the maker of the home screen, or via an app widget (instead of a launcher icon).
if so how come those 2 apps and other apps can do it?
Because Samsung wrote the home screen and can do what it wants with its home screen.
do i have to make like more than one icon image and swap them or something?
That will not work, as you cannot change the launcher icon at runtime.
is it really cant be done and why?
It really can be done by making an app widget, or by making your own home screen.

Question about app restart after its being destroyed

When my application is killed due to being in the background for too long (Android freeing resources) or user using task killer or something similar, in onCreate I detect new application state and execute some initializations that my app needs to work properly. While this initialization is taking place, screen turn white and my app name is written in the top left corner (this is, I guess, what Android does by default). After 1-3 seconds, after all my app settings are recreated, my app screen shows up.
I am using my own header which is understandingly not shown during this "white phase".
My question is how can I customize this white screen? or at least I would be happy if I can remove my app name since it looks weird (positioned to left, no margins, etc..) and have only white screen.
I noticed that Gmail app has white screen only when similar happen.
Any ideas are welcomed.
Thanks,

Categories

Resources