How to change Android App Name and ID of an existing application?

后端 未结 11 1584
刺人心
刺人心 2020-12-29 23:01

I have two Android projects in Eclipse. I copied the one project from the other, then changed the app name (in strings.xml) and the project name

11条回答
  •  悲&欢浪女
    2020-12-29 23:31

    Actually you need to change the name in several places:

    First, as you said, the name of the string, which is the visible name of the application.

    Second, go to activity->src and right click on the package (com.example.whatever) and do refactor->rename;

    Then go to the manifest.xml: and change the field in:

    
    

    If you are using native code, JNI, you will also have to change the names of the c++ functions, which is a pain in the ass:

    Java_com_example_whatever_activity_function()
    

提交回复
热议问题