1. Mobile Application Development
T. S. Indi, IT Department, WIT Solapur Page 1
Handout#6
Problem Statement: Design and implement an application using
Notification concept.
Design:
2. Mobile Application Development
T. S. Indi, IT Department, WIT Solapur Page 2
Steps:
1. Design layout with one TextView and one STOP button UI elements.
2. Create MainActivity class to update UI elements.
3. Create a separate thread to increment counter value and start
Counter on create of main activity.
4. On click of STOP button Counter should be stopped and notification
should be triggered.
5. On tap of Notification navigation should be done to another Activity
where counter value should be displayed (here counter value should
be dispatched from Main activity to another Activity through
Notification object)
Guidelines:
Create a NotificationCompat.Builder object that helps setting details
of template.
Set the large icon that is shown in the ticker and notification.
Set the title (first row) of the notification, in a standard notification.
Set the text (second row) of the notification, in a standard
notification.
When user taps on the notification, which is part of Android
system’s notification service, he or she is supposed to navigate to
our app’s Activity (ResultActivity)
[Reference: Book -“Mobile Apps Development” by Anubhav Pradhan, Anil V Deshpande]