adt-bundle-eclipse下的修改android项目名
2013-03-01 11:10
267 查看
Date: Mar 1st, 2013
Dongguan
QX.Zhong
===============================
1. 原android项目名为AndroidIntro,程序运行界面如下图:
![](http://img.my.csdn.net/uploads/201303/01/1362107871_8136.jpg)
顶栏的程序名称如项目名一致。
2. 通过eclipse IDE修改项目,右击项目->Rename->FirstAPP,编译程序后,运行结果如下:
![](http://img.my.csdn.net/uploads/201303/01/1362108195_3241.jpg)
顶栏的程序名依然纹风不动。
3. 问题解决,eclipse中,打开项目根目录中的AndoirManifest.xml文件,找到如下内容
eclipse界面即自动打开项目中/res/values/strings.xml文件,内容如下
![](http://img.my.csdn.net/uploads/201303/01/1362108904_1853.jpg)
4. 额外收获
android项目的activity的layout设置,可以把所有TextView的必要硬编码值放置/res/valuse/strings.xml中定义。
Dongguan
QX.Zhong
===============================
1. 原android项目名为AndroidIntro,程序运行界面如下图:
![](http://img.my.csdn.net/uploads/201303/01/1362107871_8136.jpg)
顶栏的程序名称如项目名一致。
2. 通过eclipse IDE修改项目,右击项目->Rename->FirstAPP,编译程序后,运行结果如下:
![](http://img.my.csdn.net/uploads/201303/01/1362108195_3241.jpg)
顶栏的程序名依然纹风不动。
3. 问题解决,eclipse中,打开项目根目录中的AndoirManifest.xml文件,找到如下内容
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" android:debuggable="true"> <activity android:name="com.demo.firstapp.MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application>按住Ctrl键单击第四行内容:android:label="@string/app_name"
eclipse界面即自动打开项目中/res/values/strings.xml文件,内容如下
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">AndroidIntro</string> <string name="hello_world">Hello world!</string> <string name="menu_settings">More</string> </resources>其实,修改程序名的内容是在此文件的<string name="app_name">标签中修改的,此时只需将/res/values/strings.xml中的app_name标签内容修改为目标内容,本例修改为FirstAPP,运行程序,即可达到预期目的,程序名称已经由AndroidIntro改为FirstAPP,如下图。
![](http://img.my.csdn.net/uploads/201303/01/1362108904_1853.jpg)
4. 额外收获
android项目的activity的layout设置,可以把所有TextView的必要硬编码值放置/res/valuse/strings.xml中定义。
相关文章推荐
- adt-bundle-eclipse下的修改android项目名
- 从零开始学android开发-adt-bundle-eclipse下的修改android app名称
- Android开发环境搭建——集成了Eclipse的ADT Bundle + SDK
- 日积月累:配置SDK路径错误(An error occurred while automatically activating bundle com.android.ide.eclipse.adt)
- eclipse 启动报错“An error occurred while automatically activating bundle com.android.ide.eclipse.adt (843).”
- 【资源】eclipse android adt bundle 下载地址
- How to Install Eclipse Android ADT Bundle Ubuntu 13.10 Saucy
- 修改Eclipse导入Android项目的默认工程名
- Android官网无法下载eclipse-adt-bundle
- Eclipse ADT 创建Android项目----工程目录详解
- eclipse-adt与androidstudio项目目录对比
- 【转】引入android项目在eclipse ADT中显示中文乱码问题
- Eclipse中新建Android项目时修改默认选项
- Eclipse对Android项目导入、导出、修改工程名详解
- Android ADT Bundle(Eclipse with ADT) ADT R23
- Android ADT Bundle(Eclipse with ADT) ADT R23
- Eclipse坏境下修改android项目中AndroidManifest的Package的方法步骤
- eclipse 启动报错“An error occurred while automatically activating bundle com.android.ide.eclipse.adt (84
- android笔记之Eclipse ADT的 keystore证书规格及修改证书密码别名
- 为Eclipse ADT创建的android项目通过ant添加proguard混淆支持(转载)