How to rename an android app programmatically?

Some users want to rename my Android application to another.

Therefore, I would like to provide them with a text box for entering a new name in my application. Then how can I programmatically rename my application name to a new name?

+4
source share
1 answer

Do you want to rename the application or change the title when the application starts?

To change the name you set fun () funcion from activity.

If you want to change the application name in the string.xml file, you must have a value called app_name.

You need to rename it to the new value.

To do this, you need to unzip the apk and modify the xml file, and then repack it.

But by doing this, I think the application needs to be reinstalled.

+1
source

Source: https://habr.com/ru/post/1315825/


All Articles