Android Development note--hello World and directory structure

Source: Internet
Author: User

Original: Android Development note--hello World and directory structure

Every touch of a new thing has an example of Hello World.

1. New Project

2. Configuring the AVD

AVD does not want to create a new one if it cannot be created

Run the SDK Manager update

3. Then you can run it.

The first boot is 1 minutes, don't turn it off.

4. Add code

5. Then the operation isOKthe

Directory structure

1. SRC-for placing the source program

2. Gen-automatically generates R.java files for referencing resource files (i.e., data in res directory)

3, assets-for placing the original file, Android will not do any of the files in this directory, which is different from the Res directory

4, res/drawable-for the placement of pictures and other resources; res/layout-XML file for placement of layouts; res/values-for placing some constant data

5. Androidmanifest.xml-android program manifest file, equivalent to configuration file, configure application name, icon, Activity, Service, receiver, etc.

Android Development note--hello World and directory structure

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.