简体   繁体   中英

Change application name and icon programmatically in Android?

Is there any way that the user can choose the application name and launcher icon of my app and set it programmatically?

I want to give the permission to user so that he can rename my application and also change the launcher icon of the app.

Is there any solution to this?

The only thing you can do is to define multiple Launcher Activities with pre-defined icons and labels, and enable/disable them programmatically.

setComponentEnabledSetting (ComponentName componentName, int newState, int flags)

It is not possible to change either of these values easily. You could create new Launcher Icons from inside the app, and then control them easier - like the other answer suggests).

Bottom line, this is not easily done using standard Android framework to the best of my knowledge.

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