Android preliminary-helloworld

Source: Internet
Author: User
Android preliminary-HelloWorld

The first time I came into contact with Android development, I got a new one, made a Helloworld, and recorded some notes.

Use Eclipce to create a new HelloWorld with the following content:

 

The role of these content:

I. src

Project source file

Ii. gen

Generated by the ADT plug-in of Eclipse

For each resource, R. java automatically adds an id for the resource, for example, button1 = 0 xxxxx

3. Andorid 2.3.3

Package directory required by the Andorid Program

Iv. assets

Some resource files can be placed. Unlike the res folder, IDs are not generated in the R. java file.

V. res

Drawable-hdpi image resource HD file

Drawable-ldpi

Drawable-mdpi

Because the resolutions of different devices are different, all three files support devices with different resolutions.

Layout/main. xml

The main layout configuration file. You can click here to layout the control.

Values/strings. xml

Key Value configuration file, which can be configured as values in different languages for international purposes

6. AndroidMainfest. xml

Main configuration file of the Andorid application, including all main configurations

 

 

 

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.