Skip to content

ga-adi-macaron/notifications-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

title type duration creator
Notifications
lab
1:25
name city
Yuliya Kaleda
NYC

Notifications

Introduction

Note: This lab should be done in pairs.

In this lab, you will work with a partner to build a network notification app. The idea behind the app is to give the user information about connectivity state when the app gets opened.

When the app is launched, there should be an expanded notification with a large image informing the user about network connectivity. When the notification is clicked, the user should be redirected to another activity. If network is available, the notification should be dismissed in the second activity. If network is not available, the notification icon should remain in the status bar.

Your app doesn't need to look like the screenshot in the deliverable section below, but it needs to have the same functionality.

Exercise

Requirements

The app should have 2 activities:

  • Main Activity that handles notification objects;
  • Second Activity that is responsible for dismissing the notification if it shows that the network connection is available

Your app should check network connection:

  • When available:

    • show a notification with the an image (feel free to choose any image that will be associated with network connectivity)
    • redirect the user to a new activity when the notification is clicked
    • dismiss the notification in the new activity
  • When unavailable:

    • show a notification with an image (feel free to choose any image that will be associated with network connectivity absence)
    • redirect the user to a new activity when the notification is clicked
    • make sure the notification icon does not go away unless the user swipes the notification away

Bonus

  • Create another notification that has a "call" button; when the user presses the button, the phone dials any number

Deliverable

Here are two screenshots of the requirements:


Licensing

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages