4. What constitutes our Android app? (Seven bulky)

Source: Internet
Author: User

First, the four components of the application

the Activity "

Activity is an interface for Android apps that can be used to view contacts, call and play games.

B. An application typically contains multiple activity.

C. Activity adds various view components through layout management.

D. The view can be rendered by using the Setcontentview (int) method.

the Service "

A. The service runs in the background and is responsible for dealing with things that some users don't see and that have a duration. such as downloading data, playing music and so on.

B. The service does not generate UI and is not visible.

C. All user-implemented service must inherit the service class of the system and register it in the configuration file.

"Content Provider "

A. Data is a private program in Android.

B. Content provider provides a mechanism for data interaction among multiple programs.

C. Content provider exposes a number of standard APIs to manipulate data.

"Broadcast Receiver "

A. Broadcast receiver is responsible for responding to external events.

B. Broadcast receiver does not generate UI and is not visible.

C. All user-implemented broadcast receiver must inherit the Broadcastreceiver class of the system and need to be registered in the program.

D. The application can broadcast its own intent through context.sendbroadcast (). Other programs take time processing through their own broadcast receivers interception.

Ii. Important Objects Intent < four components-three all to intent support >

A. Transfer intent start an activity, startactivity, Startactivityforresult;

B. Transfer intent start a service, StartService, Bindservice;

C. New addition to a broadcast by intent, Sendbroadcast, Sendorderedbroadcast (), Sendstickybroadcast ();

D. Executing a query, contentresolver query ();

Third, other

Launcher&widget

Notification

4. What constitutes our Android app? (Seven bulky)

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.