1/14
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What is the purpose of notifications in Android?
informs users about important events or updates even when the app is not in use. They are managed by the Notification Manager service.
What is the role of the Notification Manager in Android?
handles the display and removal of notifications in the system's notification shade.
What are Basic Notifications in Android?
a title, message, and optional icon.
What is BigTextStyle in Android notifications?
used for showing a larger text body in a notification, useful for longer messages.
What is BigPictureStyle in Android notifications?
displays a large image alongside the notification content.
What is InboxStyle in Android notifications?
allows multiple messages to be shown in a stacked format.
What is MessagingStyle in Android notifications?
is used for chat or messaging apps, allowing messages to be grouped in a conversational format.
What are Progress Notifications in Android?
display a progress bar, useful for indicating download or processing progress.
What are Custom Notifications in Android?
allow full customization of layouts and complex elements beyond the default notification styles.
What is a Notification Channel in Android?
categorizes notifications and allows users to control their behavior (e.g., sound, vibration). Required for Android 8.0+ (API 26).
What are the key components of an Android notification?
Notification Channel (Android 8.0+): Categorizes notifications.
Notification Manager: Manages display/removal.
Notification Builder: Constructs the notification.
What permission is required for vibrating notifications?
<uses-permission android:name="android.permission.VIBRATE"/>
What is the purpose of NotificationCompat.Builder?
NotificationCompat.Builder is used to construct and customize notifications, including setting the title, text, icon, and actions.
What is a foreground service notification?
ensures that the system does not kill the service for running too long, displaying a persistent notification while the service is active.
What are best practices for using notifications in Android?
Use Notification Channels: Categorize notifications.
Avoid Overuse: Don't spam users.
Provide User Control: Let users customize settings.
Use Proper Priority: Set importance levels like IMPORTANCE_HIGH
or IMPORTANCE_LOW
.