(original) "Android Programming Authority Guide" learning note 01--Android app first experience--002

Source: Internet
Author: User

Create an Android project.

Start the Eclipse program, select File->new->android Application Project menu item, open the New Reference window to create a new project.

Enter Geoquiz at the app name (application name) (project name is automatically updated to Geoquiz). Package name Enter Com.bignerdranch.android.geoquiz. As shown in the following:

Figure 1-3 Creating a new app

  Note that the entries entered above follow the "DNS reversal" convention, which is to reverse the domain name of the enterprise organization or company and apply the name on the tail attachment. By following this Convention, you can guarantee the uniqueness of the package name so that you can differentiate between the same device and the Google Play store's various applications.

, the other four options are used to configure how to adapt to different versions of Android devices. We use the default settings directly.

Also, the different versions of the Android development tools may cause the screen to look differently, but the overall difference will not be too large.

Click the Next button.   (White: ...) Star Month: ==! )

In the second window, clear the option to create a custom launch icon (created custom launcher icon) that has been checked. The Geoquiz app only needs to use the default startup icon. Confirm that the Create Activity option is selected. Such as:

Figure 1-4 Configuration Items

Click Next.

The window shown in 1-5 asks what type of activity you want to create. Select the blank Activity.

Figure 1-5 Creating a new activity

Continue to click Next.

In this window, the named activity sub-class is shown in Quizactivity,1-6. Notice the activity suffix of the subclass name . Although not required, we recommend that you follow this good naming convention.

Figure 1-6 Configuring the new activity

To reflect the relationship between layout and activity, the layout name is automatically updated to Activity_quiz. the naming conventions for layouts are : reverse the order of words for activity names and convert them all to lowercase letters, and then underline between words.

Keep the None option of the Navigation type (Navigation type) intact, click the Finish button. Eclipse finishes creating and opening a new project.

  

(original) "Android Programming Authority Guide" learning note 01--Android app first experience--002

Related Article

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.