简体   繁体   中英

How to change an application icon programmatically in Android, 2016

I, as so many Android programmers before me, would like to change the Icon of my App from the inside. My App would be a simple WiFi Switch App, with an Icon that displays the state. Yes, WiFi is in the Notification Bar. Byte me, I am lazy. Anyway, there is not a simple system in place to do so, so it seems.

I have searched, low and shallow (not longer then an hour). And this is what I came up with:

Question: is there a better / easier way to do so than here in the links? It has been 7 years already!

The answer from 2013 explains it as it is today. There is still no way to change the launcher icon of an app without using third-party software. I doubt Android will add support for this in the near future, as you can use widgets for this sort of thing already.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM