Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

A6f. Alerts for Courses The mobile application allows the user to set alerts for either the start or the end date of each course, or the alerts do not trigger when the application is not running. A7a....

2 answer below »

A6f. Alerts for Courses

The mobile application allows the user to set alerts for either the start or the end date of each course, or the alerts do not trigger when the application is not running.

A7a. Assessments for each Course

The mobile application allows the user to add performance and objective assessments for each course but cannot include the title of the assessment and the end date for each assessment.

A7c. Alerts for Goal Dates

The mobile application allows the user to set alerts for either the start or the end dates for each assessment.

Answered 22 days After Jan 19, 2022

Solution

Manish answered on Feb 11 2022
112 Votes
Alert App
The programme begins with a home activity that includes an edittext field for entering the term's name as well as two date selectors for selecting a start and end date. There are two buttons below the edittext, one to store the terms information and the other to link to a website where you can see all of the terms you've entered. There is a recyclerview on the view terms page that displays all terms added. When a user selects a single view, a new activity appears, displaying a detailed term view. A dialogue with four buttons opens after a lengthy press of a view. The following are the names of the buttons: Update Term, Add Course, View Course, and Delete Course are all options available.
When users click the Update Term button, a new activity appears, allowing them to update and save the information of the term. The Add Course button launches an activity that allows you to add as many courses as you want for that term. The clicked phrase is deleted when you click Delete Course. View Course launches an activity with a recycler view that displays a list of all added courses for that term.
An activity with a full course view opens when you click on a course. Following a lengthy push of a course, a dialogue with seven possibilities appears. Course Refresher, Add an Assessment, View an Assessment, Add an Optional Note, View an Optional Note, Share an Optional Note, and Delete a Course are all options available. The Update option launches an activity in which the user may change course information.
Add Assessment is a command that adds an assessment to a course. Add optional remarks and add a note to the course you've chosen. View Optional Note displays the newly inserted optional note in a new activity. Long pressing a course
ings up a menu with different options for viewing course notes. Viewing optional remarks is an option. When you select the option, a new activity with course notes will appear. There are two buttons above the notes for updating and removing the notes. Share optional note launches an action in which the user is prompted for the recipient's phone number in order to send the optional message through SMS.The course you've chosen is deleted when you click Delete Course. View assessment choices displays a list of all examinations related to the course you've chosen. An activity that offers a thorough assessment view opens when you click on an evaluation. When you hold down the long press button on an evaluation, two alternatives to amend and remove it appear. When you long press a course, you'll get an opportunity to add an evaluation. There are various edittext fields for entering assessment data and assessment type. Either performance or targets are entered by the user.
The application has a notification function that checks and alerts users on the start and end dates of terms, courses and assessments.
How this is implemented
While your app is not in use, notifications deliver concise, timely information about happenings in your app. This page explains how to build a notification for Android 4.0 (API level 14) and above with numerous capabilities. The Notifications Overview provides an overview of how notifications display on Android. The Android Notifications Sample contains sample code that uses notifications.
The NotificationCompat APIs from the Android support li
ary are used in the code on this page. These APIs let you add functionality that are only available in subsequent Android versions while maintaining backward compatibility with Android 4.0. (API level 14). On previous versions, however, some new features, like the inline reply action, are a no-op.
Include the li
ary of help.
Although most Android Studio projects have the required dependencies for NotificationCompat, you should double-check your module-level build.
The following dependencies are included in the gradle file:
val core_version = "1.6.0"
dependencies {
implementation "androidx.core:core:$core_version"
}
Note: Other li
aries in the androidx group also include core as a transitive dependency. So if you're already using other Jetpack APIs, you might have access to NotificationCompat without requiring the exact dependency shown above.
Create a basic notification
A notification in its most basic and compact form (also known as collapsed form) displays an icon, a title, and a small amount of content text. In this section, you'll learn how to create a notification that the user can click on to launch an activity in your app.
Figure 1 shows a title and text for a notice.
Read the notification anatomy for further information on each component of a notification.
Set the content of the notification
To get started, use a NotificationCompat.Builder object to configure the notification's content and channel. The example below explains how to make a notice using the following:
· setSmallIcon creates a little icon (). This is the only material that should be shown to the user.
· setContentTitle creates a title ().
· setContentText specifies the body text ().
· setPriority determines the priority of notifications (). On Android 7.1 and below, the priority controls how obtrusive the notice should be. (If you're using Android 8.0 or higher, you'll need to specify the channel significance, which is covered in the following section.)
It's worth noting that the NotificationCompat.Builder function Object() { [native code] } requires a channel ID. This is essential for Android 8.0 (API level 26) and greater compatibility, while previous versions disregard it.
The text content of the notice is shortened to fit one line by default. You may enable an expanding notice by adding a style template with setStyle to your notification if you want it to be longer (). For instance, the following code expands the text area:
For more information about other large notification styles, including how to add an image and media playback controls, see Create a Notification with Expandable Detail.
Create a channel and set the importance
Before you can deliver the notification on Android 8.0 and higher, you must register your app's notification channel with the system by passing an instance of NotificationChannel to createNotificationChannel(). So the following code is blocked by a condition on the SDK_INT version:
Because you must create the notification channel before posting any notifications on Android 8.0 and higher, you should execute this code as soon as your app starts. It's safe to call this repeatedly because creating an existing notification channel performs no operation.
Notice that the NotificationChannel constructor requires an importance, using one of the constants from the NotificationManager class. This parameter determines how to inte
upt the user for any notification that belongs to this channel—though you must also set the priority with setPriority() to support Android 7.1 and lower (as shown above).
Although you must set the notification importance/priority as shown here, the system does not guarantee the alert behaviour you'll get. In some...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here