Android Reading notes 1

Source: Internet
Author: User

Layer four
Linux kernel layer
Library Java Virtual Machine
Framework
Application

Four components
activity (activity), Service (services), broadcast receiver ( Broadcast receiver), content provider

Device drop-down point DDMS the right drop-down list of reset adb is available

Some notes about the project directory
src     java Code Storage Place
gen     This directory is automatically generated, never modify them
asserts     Some of the files packaged with the program are placed here, and if you use the Web, the relevant pages will also be stored here
bin    apk and some of the compile-time directories here
libs     The third-party jar package
res     projects used in the picture, layout (XML layout), string (values) are placed here
androidmanifest.xml   The four components defined in the   program are registered in this file, you can also add permission declarations to the application, or you can reassign the minimum and target versions specified when the project was created
project.properties     Specifies the SDK version to use when compiling the program

Resource is placed in the Res directory under the beginning of the
Drawable directory is to put pictures, different resolutions of the picture used on the machine, if only one picture is placed inside the-hdpi
layout, Values are XML files that reference these resources in Java or XML, use R.STRING.XXXX when referenced in Java, use @string/xxxx when referencing in other XML, and XXXX is the XML key value. String is a reference to the strings, if the reference is a picture is drawable, if you are referring to a layout file is layouts
Note: If you reference an ID in XML, you want to use @id/id_name; If you define an ID in XML, you use @+id /id_name

Android Reading note 1

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.