Android-four basic components-< two >

Source: Internet
Author: User

1.Activity

2.BroadcastReceiver (Broadcast receiver):

is a component that focuses on receiving broadcast notification information and responds. such as low power, notification time zone changes, and so on.

An app can have any broadcast receiver.

It does not have a user interface and can initiate an activity to respond to received information, or notification Manager to react.

3.content provider (Data sharing)

It can share data from a program for use by other applications.

This data is stored in the file system or in the SQLite database. Content Resolver Object Query,insert, Up-date method

4.Service

It has no visual user interface, but in the background for a period of time to run, for example: The music player's playback function into a service

The user can do other things and listen to music.

Android-four basic components-< two >

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.