Components of Android Apps

Source: Internet
Author: User

Android applications are composed of loosely coupled components and are bound together using application manifest. Application manifest describes how each component interacts with them, and also specifies the application metadata, its hardware and platform requirements, external libraries, and the required permissions.

The following components provide the basic architecture module for your application:

The presentation layer of the activity application, where each UI in the application is implemented through one or more extensions of the activity class, using fragment and views to lay out and display information, and respond to user actions.

Non-visible workers in service applications, service components without UI at run time, we can update data sources and activity, trigger notifications and broadcast intent, they are used to perform some long-running tasks, or tasks that do not require user interaction.

Content Provider A shareable persistent data storage that content Provider uses to manage and persist application data, typically interacting with SQL databases, content Provider is the preferred way to share data between applications, You can either configure your own content Provider to allow other applications to access, or you can access the content provider.android devices provided by other applications that contain multiple local content Provider to provide a useful database. such as Media Library and contact information.

Intent a powerful messaging binge between applications, Intent can be used to start and stop activity and SERVOCE, to broadcast messages within a system-wide or to a target activity,service or broadcast receiver, and a request to perform operations on specific data.

Broadcast receiver Intent frame listener, broadcast reciver enables applications to listen to intent broadcasts that match the specified filtering criteria, broadcast receiver Automatically launches applications in response to a received intent, which makes them the best choice for event-driven applications.

Widgets are typically added to the visual application component of the device home screen, which is a special variant of the broadcast reciver that can be used to create dynamic, interactive application components that users can add to their home screen.

Notification Notification allows signals to be sent to the user, but does not unduly attract their message attention or disrupt their current activity, which is the preferred method of attracting attention when the application is not visible or inactive.

By separating the dependencies between these application components, you can share and use separate content Provider Service or even activity with other applications.

Components of Android Apps

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.