Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 279
WISHY Avatar asked May 18 '26 10:05

WISHY


1 Answers

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)

like image 89
Simon Marquis Avatar answered May 20 '26 22:05

Simon Marquis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!