In Eclipse, open the Andoirmanifest.xml file in the project root directory to find the following
<ApplicationAndroid:allowbackup= "true"Android:icon= "@drawable/ic_launcher"Android:label= "@string/app_name"Android:theme= "@style/apptheme"android:debuggable= "true"> <ActivityAndroid:name= "Com.demo.firstapp.MainActivity"Android:label= "@string/app_name" > <Intent-filter> <ActionAndroid:name= "Android.intent.action.MAIN" /> <categoryAndroid:name= "Android.intent.category.LAUNCHER" /> </Intent-filter> </Activity> </Application>
Ctrl-click on line Fourth: android:label= "@string/app_name"
The Eclipse interface automatically opens the/res/values/strings.xml file in your project with the following
<?XML version= "1.0" encoding= "Utf-8"?><Resources> <stringname= "App_name">Androidintro</string> <stringname= "Hello_world">Hello world!</string> <stringname= "Menu_settings">More</string></Resources>
In fact, the content of the modified program name is modified in the <string name= "app_name" > tag of this file, at this time only app_name in/res/values/strings.xml The contents of the label are modified to the target content, this example is modified to Firstapp, run the program, you can achieve the intended purpose, the program name has changed from Androidintro to Firstapp, such as.
The activity layout settings of the Android project can be defined by placing all textview necessary hard-coded values in/res/valuse/strings.xml.
Modified Android project name under Adt-bundle-eclipse