Android Learning Note 3 My first Android application

Source: Internet
Author: User

Follow the teacher's progress ... First Android Application

Open Eclipse, click File->new->android Application project to create a new Android application project.

Note Here to select the SDK version required for the Android application, where the minimum Required SDK for the engineering minimum Android version requires the target SDK for the engineered Android target version compile With is a compatible version of the project. Clicking next to tick create activity means that eclipse automatically creates an activity. An Android project includes one or more activity. Activity is the presentation layer of the Android program, displaying a visual user interface and receiving interface events generated by user interaction, much like the concept of "form". Ncreate Project in

Workspace is the location of the hard drive where all the files of the project are located.

Click Next

The icon for the application is set here and you can upload your own icon, and the default is the Android Classic Green robot icon. Click Next here to select the activity style, the most basic of course is blank activity. And then into Eclipse. We don't need to add any code manually, and the Engineering Wizard automatically creates the underlying files and directory structure needed for Android projects in the background based on the Android engineering information that the user fills in. Connect to the real-machine debug: Phone is connected to the computer, and turn on USB debugging for the developer option of the phone, select Windows->show view->others->android->device in Eclipse.      The phone will then appear in the device bar below. Right-click the project folder and select Run As-> Android application. The program you created can be installed to an external Android device.  Run the app on the phone. The first Android app works even if it's running.

Android Learning Note 3 My first Android application

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.