Crazy Android First chapter: Android Environment configuration and basic concepts

Source: Internet
Author: User

Chapter I.

Nothing itchy pain : Android Studio installation, configuration, basic features introduction !

Key content : Android application basic structure analysis.

Basic Concept Part ( just know the function , see the code after the principle ):

Activity: a component class that is responsible for interacting with the user interface in the Android system, and its main function is to display a page through its setcontent (View); method will View object, or View object's Resources ID and other ways to View the layout content of the object is displayed. , and oneself is a View the direct container of the indirect container is window,activity There are many ways to manipulate windows, such as window themes, styles, and so on.

View: This is a visual component base class, and many of the Android Interface related components derive directly or indirectly from this.

The status of the two classes of the service:activity and service are tied together, and both have their own life-cycle methods related to dealing with their own functional transactions, the difference being : The two functions are different, one is for the user interface related UI processing type of transaction, and service is mainly used in the background of the program to run related transactions.

Broadcastreceiver: A broadcast event receiver whose function is primarily to accept broadcasts from other applications, and then respond and process them accordingly, by sending a broadcast to the system by a component of the application, Broadcastreceiver registers a broadcast listener with the system so that it can accept broadcast responder transactions.

ContentProvider: because each Android application runs in its own application virtual machine, it uses contentprovider when it interacts with each other for data to achieve, not only that, ContentProvider you can also get and open the component settings data for the other program.

Intent: This class is a container class, is the carrier of the above component communication, through its operation method can make the communication from the component to another component to carry out. When you open another component using the intent action method, there are two ways to display intent: explicitly specify the name of the target component and the package class, and the other is an implicit Intent: by setting the criteria for the response, the target is not unique, and the condition can be started.

Intentfilter: This class is used to distinguish between conditions that are satisfied by implicit intent filtering.

Crazy Android First chapter: Android Environment configuration and basic concepts

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.