Components of an Android Application and screen
Components of an Android Application and screen
ANDROID APPLICATION
• There are some necessary building blocks that an Android application consists of. These
loosely coupled components are bound by the application manifest file which contains the
description of each component and how they interact. The manifest file also contains the
app’s metadata, its hardware configuration, and platform requirements, external libraries,
and required permissions. There are the following main components of an android app:
• 1. Activities
• Activities are said to be the presentation layer of our applications. The UI of our application is
built around one or more extensions of the Activity class. By using Fragments and Views,
activities set the layout and display the output and also re
• 2. Services
• Services are like invisible workers of our app. These components run at the backend,
updating your data sources and Activities, triggering Notification, and also broadcast Intents.
They also perform some tasks when applications are not active.
• 3. Content Providers
• It is used to manage and persist the application data also typically interacts with the SQL
database. They are also responsible for sharing the data beyond the application boundaries.
The Content Providers of a particular application can be configured to allow access from
other applications, and the Content Providers exposed by other applications can also be
configured.
• 4. Broadcast Receivers
• They are known to be intent listeners as they enable your application to listen to the Intents
that satisfy the matching criteria specified by us. Broadcast Receivers make our application
react to any received Intent thereby making them perfect for creating event-driven
applications.
• 5. Intents
• It is a powerful inter-application message-passing framework. They are extensively used
throughout Android. Intents can be used to start and stop Activities and Services, to
broadcast messages system-wide or to an explicit Activity, Service or Broadcast Receiver or
to request action be performed on a particular piece of data.
• 6. Widgets
• These are the small visual application components that you can find on the home screen of
the devices. They are a special variation of Broadcast Receivers that allow us to create
dynamic, interactive application components for users to embed on their Home Screen.
• 7. Notifications
• Notifications are the application alerts that are used to draw the user’s attention to some
particular app event without stealing focus or interrupting the current activity of the user.
They are generally used to grab user’s attention when the application is not visible or active,
particularly from within a Service or Broadcast Receiver. Examples: E-mail popups,
Messenger popups, etc.
THE COMPONENTS OF AN ANDROID SCREEN
INCLUDE:
• Views: These are widgets like buttons and text that are the building blocks of an Android screen.
• View groups: These are groups of views that define the screen layout. Common view groups include linear,
relative, and table layouts.
• XML layout file: This file contains the views and view groups that define the Android screen. An activity
loads the XML layout and compiles it into GUI classes to display the user interface.
• System bars: A part of a typical Android app screen.
• Navigation region: A part of a typical Android app screen.
• Body region: A part of a typical Android app screen.
• Tabs: These allow users to switch between primary destinations in an app. Tabs are located at the top of
the display.
• Snackbars: These are brief notifications that appear at the bottom of the screen to provide feedback about
an action or operation. Snackbars disappear after a few seconds, but the user can also dismiss them
manually