Android Four components

Source: Internet
Author: User

Activity provides a visual user interface for applications to interact with users
    • Startup mode
      1. Standard
      2. Singletop
      3. Singletask
      4. SingleInstance
ContentProvider content providers share data, providing a standard for data exchange across applications
    • Insert
    • Update
    • Delete
    • Query
Contentresovleruribroadcastreceiver broadcast receivers are used to receive programs (including user-developed programs and system-built programs) issued by Broadcastreceiver
    1. Power consumption
    2. Boot up
    3. Stealing text messages from others
    4. Stealing people's phones.
    5. Press the camera key
    6. When the SD card is plugged in and unplugged
<receiver android:name= "" >
<intent-filter >
<action android:name= ""/>
</intent-filter>
</receiver>

Sendbroadcast () Sendorderbroadcast () Sendstickybroadcast ()
Priority: Higher values prioritize service execution
Usually runs in the background, and he generally does not need to interact with the user. Primarily used to provide back-office services to other components, or to monitor the health status of other components

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.