**A) for changing Just the application name
(App name which is displayed below icon)
in the Manifest.xml file, in <application tag,
android:label="YourAppName"
then do the same in All the <activity Tags
B) For changing EVERYTHING
(folder names, Package names, Refrences,app name, etc.)
*1) Renaming package names in gen folder and manifest.xml
Right Click on Your project
Android tools- Rename Application Package
*2) Renaming package names in src folder
Expand src folder, Click on package (Single click)
Press Alt+Shift+R
Check Update references and Rename subpackages
3) Renaming the app's main Folder (Optional)
click on the application's folder (Single click)
then Press Alt+Shift+R
4) Renaming application name- Refer "A)"**
进入 AndroidManifest,搜索并用新的包名替换旧的包名,并在保存时更新所有内容。转到您的根项目包,然后按 F2,写入新的名称,并选中更新引用和重命名子包复选框。在这之后,所有项目都变成了红色(抱怨每个 java 文件都有 R 导入) ,因为它没有改变我在布局 xml 中自定义视图的结束标记。手动更换后,一切恢复正常。就是这样。
Right click on your project name and select Android Tools , then click
Rename Application Package, then change your project name click OK and
click Finish.