Reputation: 21
Is it possible to update the launcher icon dynamically? Currently it seems that it can only be set statically at build time using the android:icon attribute in the AndroidManifest.xml file. For example, to display a unique icon based on the device's location?
Is this something that can be achieved using aliases? If so, can an alias's launcher icon be enabled/disabled dynamically?
Upvotes: 2
Views: 1783
Reputation: 283
There is a way. You can specify a specific Image/Icon to display based on the phone's provider and the location. Read this online documentation: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources
Upvotes: 0
Reputation: 1
This needs to be initiated by the user though (since it appears that an application cannot add a widget to the home screen - http://groups.google.com/group/android-developers/browse_thread/thread/3e98e918c2bb8580).
Is there another way which allows the application to control the image displayed by the launcher icon without user intervention?
Upvotes: 0