Android Development (II): android Structure

Source: Internet
Author: User

Shows the android project structure:

R. java: The read-only file is automatically generated and defines many constants, which are indexes of all resources of the project. You can use this file to quickly find resources in the project and refresh the new resources when they are added. Define Constants by type, such as string, color, and layout.
AndroidManfest. xml: The android instruction file contains the Actiivity, Service, and explorer used in this project.
Main. xml: Layout file. Layout: setContentView (R. layout. main );
Android applications are constructed by four modules: Activity, Intent, ContentProvider, and Service. However, not every application is composed of these components and can be combined by the openers.
Activity: Represents a screen that a user can see. It is mainly used to process the overall work of an application, such as listening to system events, displaying a specified view for the user, and starting other activities.
Intent:Android uses the special Intent type to implement switching between Activity and Activity.
ContentProvider: Completes data sharing between different android applications. ContentResolver uses the Content Provider you need;
Service: A program with a long life cycle and no user interface, such as a media player that is playing a song from the media playlist.
 
Shows the lifecycle of android:

Uidesign tools: http://code.google.com/p/droiddraw/

 
From Tyrone's column

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.