How to make a variable icon of Android application? -


usually icon fixed. want make application: when user presses icon, won't open new ui change icon itself. means has 2 status , can changed user's pression. can show code or example? thanks!

the example:

as can see below screenshots of phone. app icon represents cleaner. when press it, 2nd picture shows icon changes , won't enter ui, shows percent of phone's processes cleaning status. want make app effect.

enter image description here enter image description here

you cannot change application icon @ runtime, in terms of displayed home screen in launcher.

you welcome write home screen app widget can respond user input , can change ui.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -