Professional Documents
Culture Documents
Primary Components of Android Mobile App
Primary Components of Android Mobile App
Hajrah Jahan
Overview
View
UI element such as button,
label, text field etc.
Intent
Invokes these components
Content Providers
Share data between the
applications
Fragments
One or more parts of an
activity displayed on the
screen at the same time.
Services
Background processes that can run for a long time.
Local Services:
Accessed from within the application.
Remote Services:
Accessed from other applications.
Android Emulator
Foreground Services:
● These services are used to perform tasks that
are noticeable to users.
● They stay alive even when the app is
terminated.
● Must display a notification while they are
running.
● For example, playing audio or saving an edited
video.
Background Services:
● Runs only when the app is running so it'll get terminated when the app is terminated.
● Keep in mind that Android places some restrictions on background services in order to optimize
performance.
● Bound services provide an interface that allows them to interact with app components, and these services
● This data set can be private to your application or can be shared, with other
● In case it is for your app, the UI components such as activities will use the
● When used by other apps, the content provider manages access to the data
● The Android system makes various types of broadcasts an app can respond to.
● You can also develop apps to make these broadcasts, but this is far less likely than
● For example, information about the device's hardware, such as the battery level, the
screen shutting off, the charger being plugged into an outlet, etc.
Widgets
Control widget:
application.
● For example – pause and play the video outside the application.
Widgets
Collection widget:
● Used for browsing information and opening any one of the elements to
view details.
● For example – music widgets, as we can skip pause and play music
Hybrid widget:
the user.
● The action bar gives your app a user interface component that is consistent across the Android
system.
● Typical items displayed in the action bar include shortcuts to common actions, including
● It offers most of the benefits from bottom navigation, minus the ease of use while holding mobile
devices.
● With larger phones, many users will have to use both hands or change their grasp in order to
Recommended for:
Recommended for:
○ Lateral navigation
Recommended for:
customizable nature.
● They come in all shapes and sizes and are a great way to
navigation.
• https://developer.android.com/guide/components/fundamentals
• https://www.javatpoint.com/android-core-building-blocks#:~:text=The%20core%20building%20blocks%20
or,%2C%20fragments%20and%20AndroidManifest.xml
• https://www.youtube.com/watch?v=r3YbZ7N8xAM
• https://www.youtube.com/watch?v=W2Xn42Id2V4
Handouts
• https://www.androidpolice.com/how-to-manage-notifications-android-phone/
• https://developer.android.com/develop/ui/views/appwidgets/overview
• https://developer.android.com/develop/ui/views/notifications
• https://developer.android.com/guide/components/services
• https://developer.android.com/guide/topics/providers/content-provider-basics
• https://developer.android.com/guide/components/broadcasts
Handouts
• https://m2.material.io/design/navigation/understanding-navigation.html#lateral-navigation
• https://android-course.cornellappdev.com/chapters/8.-navigation/8.1-types-of-navigation
• https://www.justinmind.com/blog/mobile-navigation/
• https://m1.material.io/patterns/navigation.html#navigation-combined-patterns
• https://www.nngroup.com/articles/mobile-navigation-patterns/