I want to let the user define the name of my app - android

I have app and i want the user to name it i want to give him some names and let him choose the name he want as app_name
how to do it ?

The app's title stated in the manifest and cannot be changed during runtime. Android does not permit this.
You can, however, change the title of the app in the title bar via setTitle(name);
But the icon you can change:
https://stackoverflow.com/a/19593601/2413972

Related

The problem is "ic_launcher" icon overwritten from aar 'cause the icon name is same

App icon starts to be exposed with another icon what I don’t want after I include aar.
And I found the reason why it's overwrtten 'cause both have a same name.
That's why if I change the name of app icon what I want, it works.
How can I choose a specific icon for the app through manifest?
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
...
have u tried changing the name of the icon that you want in the manifest, there will be no problem. also change it in the manifest file
If you want to change your app icon name, you can do it without facing any problem and after changing the name of app icon you need to change also your icon name from your manifest too.

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.

Change App Icon And Name From Outside

Is there any way that set the application Icon and Name from an external resource such as an image which embedded inside the assets/ folder in the project?
Or is there any way that let us set icon and name of app without using AndroidManifest.xml file?
Is there any way that set the application Icon and Name from an external resource such as an image which embedded inside the assets/ folder in the project?
No.
Or is there any way that let us set icon and name of app without using AndroidManifest.xml file?
No.
For your activities, you can override the title and/or icon used in the action bar or title bar, if that is your actual objective. However, you cannot change the values used for things like the home screen launcher icon or your app's entry in the application list in Settings.
No it is not possible . You should send an update and things would change in accordance with AndroidManifest.xml .
So what I will suggest is, to send an update
I found the answer. by Using APKtool

Allow user to change default application icon in Android

Here's the thing...
I want to allow the user to change the default application icon, which is set in the manifest inside the tag in the android:icon atribute.
So, how can I do this? Any ideas?

how can i set the application icon programmatically android

I know that we can set it through manifest file using android:icon attribute.But how can we set it in java code?
It doesn't make sense to set it programmatically, the launcher has to display the application icon when the application isn't active.
If you take a look at How to change an application icon programmatically in Android?, you will find a comment, which links to this sample code in the Android developer API demos: LaucherShortcuts.
It seams that the Activity can create a LauncherShortcut, which can have a different icon (see function setupShortcut()). If you want the user to select the Icon, you have to display a list of icons when creating the shortcut. But again, it is a shortcut. In the list of application the original icon appears.
I dont think the launcher icon can be set programatically.

Categories

Resources