Is it possible to change the launcher icon in android mode with user selection?
1 answer
Strictly speaking, you cannot change the launcher icon at runtime. However, there are several workarounds available for this:
1. Job ID:
Create some tags activity-alias
in the manifest for your activity MAIN
and enter a different icon drawable
. Then you can choose specific activity-alias
through your code as per your requirement.
2. Install / remove shortcuts: This approach will not change your application icon, but you can update (read reinstall) your application shortcut.
Hope it helps.
+1
source to share