Apps in Android Studio are described in key points

Source: Internet
Author: User

Read the English document and understand the File:///E:/Android2016/sdk/docs/guide/components/fundamentals.html#Components

APP compnents

Each component is a way for the system to enter your app, but not all component are real entry points for the user.

There are four types of apps:

Activity:

Each activity represents a separate screen for the user interface, and these activity is independent of each other

Services:

Run in the background to handle long-running operations or perform tasks for remoting. The service does not provide a user interface. However, the service can be opened through another component such as activity.

Content Providers:

He is responsible for managing the shared set of app data that can be used to read and write your app's private data that you don't want to share.

Broadcast receivers:

She's responsible for responding to system-wide broadcast notifications.

Any app can start another app's component

The Android app does not have a single entry point (just like there is no main function)

Activating components

Activities, services, and broadcast receivers are triggered by an asynchronous message called intent. Intent The independent component at run time.

Apps in Android Studio are described in key points

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.