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