Modified Android project name under Adt-bundle-eclipse

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.