You are on page 1of 73

GPS LOCATION ROOSTER

Awais Ilyas

M. Waqar Tahir

Supervised By

Engr. Sumaira Nazir

Submitted for the partial fulfilment of BS in Software Engineering degree to the Faculty of
Engineering

DEPARTMENT OF ENGINEERING

NATIONAL UNIVERSITY OF MODERN LANGUAGES

June 2012
Final Year Project GPS Location Rooster

DECLARATION

We hereby declare that our dissertation is entirely our work and genuine/original. We

understand that in case of discovery of any PLAGIARISM at any stage, our group is

assigned a F (FAIL) grade and it may result in withdrawal of our Bachelor’s degree.

Group members:

1. Awais Ilyas ___________________

2. M. Waqar Tahir ___________________

August 2012

2
Final Year Project GPS Location Rooster

CERTIFICATE

Dated:

FINAL APPROVAL

It is certified that project report titled ‘GPS Location Rooster’ submitted by Awais Ilyas and
Muhammad Waqar Tahir for the partial fulfilment of the requirement of “Bachelors Degree
in Software Engineering” is approved.

COMMITEE

Dr. Muhammad Akbar

Dean Engineering & IT: Signature:

Col. Jamil Ahmad

Head Engineering: Signature:

Engr. Sumaira Nazir

Supervisor: Signature:

Engr. Sumaira Nazir

3
Final Year Project GPS Location Rooster

Head Project Committee: Signature:

ACKNOWLEDGMENT

We thank Allah Almighty for giving us strength to complete our final year project. This
report is dedicated to our parents, those constant support and encouragement made this
degree possible.We are thankful to National University of Modern Languages for providing
us golden opportunity to study in a healthy environment to seek knowledge and improve over
skills. We would like to thank Dean, Department of Engineering & IT, Dr. Muhammad
Akbar, Hod Col. Jamil Ahmad and all faculty members for their kind help and support.

We would also like to thank our class fellows and our supervisors Engr. Sumaira Nazir and
Mr. Adeel Ahmed Siddiqui, for their continuous guidance and help us to complete this
project.

4
Final Year Project GPS Location Rooster

ABSTRACT

The Android is a wonderful platform for the smart phones that support development of
various applications. Android helps to create innovative and dynamic applications. Android
application development ranging from asset tracking to advertising, gaming to messaging and
voicing, GPS to multimedia applications. Android application development market is
booming and there is a great demand for developing custom applications for different
purposes. Android being an open source provides a flexible platform to develop feature-rich
applications.

The main objective of GPS Location Rooster is to remind the user about his/her desired
location tasks, so that user never missed their location while travelling. Location based
reminders on GPS Location Rooster is very simple. The application is integrated with Google
Maps.The user can just tap a location on the map to set a reminder task name around that
place. The Location Alert application, like the new task reminder system determines
usercurrent location using cellular towers, Wi-Fi, the built-in GPSis to point on the Google
map. Application providesthe notification alert on nearby location by setting the values of
radius e.g. (meters, kilometres, and mile). The application keeps running in the background,
waiting for the device to come within the specified radius range of a saved location, in the
event of which, it alerts the user with a notification.

5
Final Year Project GPS Location Rooster

Table of Contents

1. Introduction.......................................................................................................................1

1.1. Problem Statement..........................................................................................................2

1.2. Proposed system..............................................................................................................3

1.3. System Requirements......................................................................................................4

1.4. Tools and Technologies used..........................................................................................4

1.5. Structure of the Report....................................................................................................6

2. Background and Related Work.......................................................................................7

2.1. Evaluation of existing systems........................................................................................8

2.2. Proposed System...........................................................................................................10

3. Introduction.....................................................................................................................12

3.1. Purpose..........................................................................................................................13

3.2. Overview of Document.................................................................................................14

3.3. Overall Description.......................................................................................................14

3.4. Operating Environment.................................................................................................15

3.5. External Interface Requirement....................................................................................16

3.6. Specific Requirements..................................................................................................16

3.7. Other Non-Functional Requirements............................................................................17

4. System Modelling............................................................................................................19

4.1. Use Cases......................................................................................................................20

6
Final Year Project GPS Location Rooster

4.2. Main Use Case diagram................................................................................................25

4.3. Sequence diagram.........................................................................................................26

4.4. Architectural Design.....................................................................................................31

4.5. Database Design............................................................................................................32

5. System Construction.......................................................................................................33

5.1. Development Objectives achieved................................................................................34

5.2. Development Track.......................................................................................................34

5.3. Development and Build Environment...........................................................................36

5.4. System Testing..............................................................................................................38

5.5. Test Cases......................................................................................................................38

6. Conclusion and Scope of Further Work.......................................................................45

6.1. Introduction...................................................................................................................45

6.2. Achievements and Objectives.......................................................................................46

6.3. Future Recommendations and Improvements...............................................................47

Appendices..............................................................................................................................48

Appendix I – Definition of Terms........................................................................................49

Appendix II – Installation Guide..........................................................................................50

Appendix III – User Manual................................................................................................51

1. Add a new location....................................................................................................51

2. Current location on map............................................................................................52

3. Add location for alarm...............................................................................................53

7
Final Year Project GPS Location Rooster

4. Save new location......................................................................................................54

5. Location alarm details...............................................................................................55

6. Alarm Setting.............................................................................................................56

7. Location Task List.....................................................................................................57

8. Location Menu Items.................................................................................................58

9. Notification alert........................................................................................................59

10. Location Alert........................................................................................................60

References...............................................................................................................................61

8
Final Year Project GPS Location Rooster

List of Tables

Table 1-1 System Requirements..........................................................................................4

Table 4-1 Use Case: Add Location Task............................................................................20

Table 4-2 Use Case: Deletion Location..............................................................................21

Table 4-3 Use Case: Set Preferences..................................................................................22

Table 4-4 Use Case: Update saved alarm...........................................................................23

Table 4-5 Use Case: Alarm Setting....................................................................................24

Table 5-1 Hardware Requirements....................................................................................37

Table 5-2 System Specifications.......................................................................................38

Table 5-3 Test Case: Enable GPS Services........................................................................40

Table 5-4 Test Case: Add Location Task...........................................................................41

Table 5-5 Test Case: Remove Task...................................................................................42

Table 5-6 Test Case: Set Preferences................................................................................43

Table 5-7 Test Case: Alarm Setting

9
Final Year Project GPS Location Rooster

List of Figures

Figure 4-1 GPS Location Rooster User Use Case diagram....................................................25

Figure 4-2 Sequence diagram: Enable Services...................................................................26

Figure 4-3 Sequence diagram: Add Location Task.............................................................27

Figure 4-4 Sequence diagram: Update Location Alarm......................................................28

Figure 4-5 Sequence diagram: Preferences Setting.............................................................29

Figure 4-6 Sequence diagram: View Help...........................................................................30

Figure 4-7 GPS Location Rooster Architectural Design.....................................................31

Figure 4-8 Entity Relationship Diagram..............................................................................32

Figure 5-1 General Architecture diagram............................................................................36

10
Final Year Project GPS Location Rooster

Chapter 1

Introduction

11
Final Year Project GPS Location Rooster

1. Introduction

The location based services plays very important role in smartphones. Location based
services provides the guidance and navigation towards destination. Now a day’s every
smartphone have built-in features. Using the location based services of Android,
GPSLocation Rooster is developed. A location task based reminder is developed to remind
the users about his/her task location. User often set alarms and reminders on desired location.
GPS Location Rooster provides functionality on which set their location based task and
provides notification alert on desired destination, which is dynamically set by user in this
application. This application works on Google Map and location based services provide by
Android operating system. This application is based on notifications alert on user
smartphone.Setting location based task reminders is very simple. The application is
integrated with Google Maps and user can just tap a location on the map to set a reminder
around that place. User may create one-time alerts or ones that repeat on particular days (like
if auser needs to pick medicines from the Chemist every Friday).

The main objective of the GPS location Rooster is to show the current location of user on
map and toeasily select the location by tapping the screen. User can associate a radius (say,
500 meters) with the sirens so that the reminder triggers off whenever user is within a precise
distance from the specified location for notification alert. The GPS Location Rooster
application, determines user location using cellular towers, Wi-Fi and the built-in GPS.

1.1. Problem Statement

Location based services assist the users to find their anticipated location to do their task. Now
a day’s with the growing usage of smartphones, these services are becoming more prevalent
and advantageous. Location based services worked on the basis of GPS. Through GPS
receiver in smartphone, user finds his/her current location on map and with the help of
Google Maps easily finds out the chosen location. There are some applications available on
Google Play Store, those provides prompt on location. But applications are either poorly
instigated or paid applications. Some applications have a registration process, which is
aextensive process to register it. The existing applications have features of single notification
on location. Applications do not provide the radius value to provide alert on specified
location.

12
Final Year Project GPS Location Rooster

1.2. Proposed System

Mobile phone based applications has brought revolution in every field of life. The Internet
and GPS services arebecoming main source of usability and to provide services to people.
The growing usage of mobile based application every user of mobile phonewants an
application which facilitate them according to their requirements.

The main objective to develop this application was to provide location based reminder to
user. A mobile based application which provides alert and notification to user for his/her
desired destination. Through Google Maps user easily get his current location on map and tap
the map to select another location for task alert. Getting the Latitude and Longitude values of
that particular location and save it letting to the new location task alert.

1.2.1 Scope of the Proposed System

The systemprovide the existing location using GPS receiver in user smartphone.The system
allow user to add location task easy to select the source destination for alert notification. The
current location of user is point on Google map. Through this system user easily tap his/her
desired location of notification alert. User enters alocation task description for each
comprehensivelocation task.Select the alert radius for alert andnotification.The systempermit
user to add manifoldlocations. System display all saved location tasks on main screen.The
system allow user to remove specific location task.The system allow user to change the
preferences settings of an application.The system provides proper help to use this
application.

13
Final Year Project GPS Location Rooster

1.3. System Requirements

Requirements for system to run the GPS location rooster:

Table 1-1 System Requirements

Mobile Requirement Google, HTC, Samsung, Motorola

Operating System Android OS

OS version 2.2, 2.3.2

GPS Support Yes

Wi-Fi Connectivity Yes

GPRS Yes

1.4. Tools and Technologies used

Tools and technologies used for the development of the Android application are described in
this section:

1.4.1. Android

Android is an emerging technology which is base on Linux operating system for mobile


devices such as smart phones. Google is the owner of the android operating system
andobtained the initial developer software, named as an Android Inc. The Android operating
system distribution was started in 2007 with the collaboration of the Open Handset Alliance
and telecommunication companies devoted to advancing open standards for mobile devices.
Google has releases the Android code as open-source, so that everyone can use it according
to their needs. The Android Open Source Projectis tasked with the maintenance and further
development of Android. [1]

Android operating system has growing large number community of developers writing
applicationsthat extend the functionality of the devices in all over the world and growing day
by day. Developers write the applications code in a customized way using the Java as a
programming language. Application can also be downloaded from third-party sites or through

14
Final Year Project GPS Location Rooster

online stores such of a Google named as Google Play (formerly Android Market), the


application store run by Google.

1.4.2. Android SDK (Software Development Kit)

The Android software development kit (SDK) comprises a set of development tools which is


used of android application development. These include a debugger, libraries, a
handset emulator, documentation, sample code, and tutorials. Currently supported
development platforms include computers running Linux (any modern desktop Linux
distribution), Mac OS X 10.4.9 or later, Windows XP, Vista and Windows 7. The officially
supported integrated development environment (IDE) isEclipse using the Android
Development Tools (ADT) Plug-in, though developers may use any text editor to edit Java
and XML files then use command line tools (Java Development Kit and Apache Ant are
required) to create, build and debug Android applications as well as control attached Android
devices (e.g., triggering a reboot, installing software package remotely). [2]

1.4.3. JDK (Java Development Kit)

The Java Development Kit (JDK) is an Oracle Corporation product aimed at Java developers.


Since the introduction of Java, it has been by far the most widely used Java Software
Development Kit (SDK). Sun announced that it would be released under the GNU General
Public License (GPL), thus making it free software.Sun contributed the source code to
the Open JDK. JDK is necessary to installed on computer to run the java based applications
and also for Android development.[3]

1.4.4. Eclipse

Eclipse is a multi-language software development environment comprising an integrated


development environment (IDE) and an extensible plug-insystem. It is written mostly in Java.
It can be used to develop applications in Java and, by means of various plug-ins,
other programminglanguagesincludingC, C++, COBOL, XML, Perl, PHP.Development
environments include the Eclipse Java development tools (JDT) for Java, Eclipse CDT for
C/C++, and Eclipse PDT for PHP, among others.The Eclipse SDK (which includes the Java
development tools) is inevitable for Java developers. Users can range its abilities by installing
plug-ins written for the Eclipse Platform, such as development toolkits for other
programming languages, and can write and contribute their own plug-in modules.[4]

15
Final Year Project GPS Location Rooster

1.5.Structure of the Report

The subsequent is the structure of the project report:

In the first chapter the project overview, purposes, and system requirements have been
labelled. Tools and technologies have also been discoursed in this chapter. The Second
chapter provides the detail of background and related work of the project.The third chapter
the Software Requirement Specification has been debated in detail.The fourth chapter is
about the system modelling, that how the project has been designed through database and
architectural design.The fifth chapter the System Construction has been described in detail
with the help of test cases.In the last chapter, conclusion and scope of further work has been
discussed.

16
Chapter 1: Introduction GPS Location Rooster

17
Chapter 2: Background and Related Work GPS Location Rooster

Chapter 2

Background and Related Work

18
Chapter 2: Background and Related Work GPS Location Rooster

2. Background and Related Work

Location based applications was introduced in iPhones, where user save their favourite
location on maps and assign them. Google introduced many applications related to location
based services to help their users all over the world.

2.1. Evaluation of existing systems

Currently there are some applications be present on Google Play Store, providing the location
based reminder on locations. Applications are poorly implemented and do not provide the
efficiency of location while travelling towards the anticipated destination. Some applications
are paid and developed for the specific region. Existing applications have not enough
configuration options, not able to select the radius of location, takes up space in notification
bar when setting notification alert it continues playing.  Application requires registration
process for before using it. In Some applications configuration of maps were poorly
implemented. Applicationsdo not provide proper help of using the application. Therefore,
people need such an application that is both useful and usable to select their location task
alarm, description for the reminder and in which it help them to accomplish their location
based alarms andenable them to easily find the location user want.

2.1.1. Drawbacks of the existing systems

There are many applications that provide location based alarm but there are some drawbacks
which make their application incomplete. Following are some drawbacks of the existing
applications:

1. Lack of information about current location on map


There is a lack of information in some of the existing applications e.g. some of the
applications are just provides latitude longitude of location and do not provide current
locationof user on map.

2. Poor implementation of Google Maps

19
Chapter 2: Background and Related Work GPS Location Rooster

Some applications used the Google maps those are poorly implemented applications
do not provide the correct location on map and also have a lot of problems while
loading the map.

3. Location alarm task notification description is not implemented


Location task description provides the quick notification of that place. Existing
applications do not provide the description of task.
4. Multiple saved location feature is not available
There are few applications those have facility to add multiple saved location option,
but are not activated at same time.

5. Navigation feature is not properly implemented


Continuous navigation on map provides user movement towards any place. Existing
application do not have such kind of functionality. Applications just provide current
location of the user.

6. Location cannot be selected through map


There are some applications those provide the functionality to add the alarm location
through search the specific location by entering the text. If text does not match with
Google map location listener, location not selected.

7. Selection of radius is not available fornotification alert


Currently, there is no application which provides the selection of radius on location.
Radius allowusers to enter proximate radius value to give alert with in radius value
e.g. (meters, kilometres).

8. No application provides help about its usage


Currently application does not have an option of help description about the proper
usage of an application.

9. Few applications have user-friendly Graphical User Interface

20
Chapter 2: Background and Related Work GPS Location Rooster

Graphical user interface of any application is a very important aspect to interact with
the application, some application have interactive user interface but are not very
complex to understand their work flow.

10. Preferences setting


Preferences setting are a very important module of any application, through which
user can change the preferences of his or hercell phone settings e.g. Wi-Fi setting,
GPS setting.

2.2. Proposed System

The proposed system has all the features and functionalities that are not present in the
existing system. Proposed system has some general optimisations like improvements in
Google maps, current location of a person and easy to select the source destination for
notification alert. The basic objective of the system remains the same as of the existing
systems, but a major step towards improvement is the proper map configuration, provides
easy to add and remove different alarms and update them according to the user’s
requirements.

2.2.1. Features of the proposed system

Following are the features of application:

1. Add new location using Google Maps


Selection of a location form Google provides easy and reliable features to add a new
location for alarm.

2. Location provider
This feature provide user to select the location service from application, e.g. Phone
network or GPS service.

3. Save multiple location task


Multiple location taskfeatures provide the ease of adding more than one location. User
can add one or more location task using this application.

21
Chapter 2: Background and Related Work GPS Location Rooster

4. Updated Google maps


Updated Google Maps are available by using Google Maps API.

5. Proper selection of alert radius


This is a very important feature of this application through which userdefine the
radius of an alert. This give alert, when a user is close towards its destination.User
select the radius in the form of (meters, kilometre, foot, yard and mile).

6. Multiple saved location are displayed on main screen


All saved location that has been added by user in application is displayed on main
screen, through which user can easily set the location.

7. Easy to select the preferences of an application


This feature provides the user to select the preferences setting of an application
without closing this application. User can select all the related setting of this
application within this application.

8. Provides help and guidance


A very important feature of any application through which a new user take help
related to usage of this application.

9. Alarm setting
This feature provide user to select the each alarm setting, user easily select the
ringtone, vibration setting and popup message setting.

10. Mode of transport


This application provide different mode of transport, which provides user to select
their travelling mode. E.g. (Custom, Train, Car, Bus etc).

11. Approaching distance

22
Chapter 2: Background and Related Work GPS Location Rooster

This application provides the approaching distance from the users current location and
the desired alarm location.

23
Chapter 3: Software Requirement Specification GPS Location Rooster

Chapter 3

Software Requirement Specification

24
Chapter 3: Software Requirement Specification GPS Location Rooster

3. Introduction

Software Requirement Specifications are the first step towards the development of any
system, it assessed the functional and non functional requirements of the system.

3.1. Purpose

This is the Software Requirement Specification(SRS) of Android based smartphones


application. This document provides the overall description of the system, functions and
performance requirements of the Android application. This SRS document provides the
overview of the smartphone application to all of its stakeholders. This document provides the
details about project scope, intended audience, user classes, features, user interface etc.

3.1.1. Document Conventions

Throughout this document, the document conventions which has been used in writing
style.Times New Roman with 16 font size for start-up pages headings, Times New Roman
with 14 font size for main heading, 12 (bold) sizes for sub heading and 12 font sizes for the
rest of the document text. The alignment of this document text is fully justified, line spacing
for the entire document is 1.5px. The APA referencing style is used for the document.

3.1.2. Intended Audience and Reading Suggestions

This SRS document is meant for all stakeholders like users, developers and testers. The SRS
document aims to explain in an easy manner, the basic idea behind the android application
development is to learn this emerging technology and implement this platform for future of
smartphones based application.

3.1.3. Scope

An important aspect of an application to integrate Google Maps in it. By using updated


license key of map. This application provides the current location of a user on map. User can
see his/her current location on map and tap on the map to select the new location for alarm.
Users can tap on map and latitude and longitude values get though map and save for new

25
Chapter 3: Software Requirement Specification GPS Location Rooster

location alarm. A notification provides the location task details and alerts the user on its
specific location.

3.1.4. Definition, Acronyms &Abbreviation

API: is an abbreviation of application program interface, it is a set of routines,protocols, and


tools for building software applications. A good API makes it easier to develop a program by
providing all the building blocks. Aprogrammer then puts all the blocks together for the
development.

SDK:is known as a Software Development Kit, a programming package that enables


aprogrammer to develop applications for a specific platform. Typically an SDK includes one
or more APIs, programming tools, and its documentation.

AVD:It is abbreviated as Android Virtual Device (AVD) configurations for a variety of


popular Android devices on the market today. Specifically, create AVD configurations for
the, HTC Evo 4G, Google/HTC Nexus One, Motorola Droid, T-Mobile/HTC G1.

JDK:It is abbreviated as Java Development Kit, used for Java development.

GPS:It is abbreviated as Global Positing System, used for communication with satellite.

XML:It is abbreviated as Extensible Mark-up Language, used for layout and user interface
designing in Android operating system.

3.2. Overview of Document

The IEEE 830 standard was followed for writing this software requirement specification
document .This SRS document includes the complete and detail description of GPS Location
Rooster. It specifies all the functional and non-functional requirement, product perspective
and functions. User classes and characteristics, operating environment, assumptions and
dependence and external interface requirement.For the rest of the document, first of all define
the overall product. Then, give the external interface requirements, followed by a brief
description of the product components and features. In the last section, provided the non
functional requirements of the product.

3.3. Overall Description

26
Chapter 3: Software Requirement Specification GPS Location Rooster

Functional requirements are the requirements that should be fulfilled and are necessary for
the development of the system or software. Without the functional requirements, the required
objectives are difficult to achieve and system or software is incomplete. The developers of
the application are bound to achieve the functional requirements. In the development of this
application there were also some functional requirements that have been achieved.

3.3.1. Product Perspective

The GPS Location Rooster provides notification alert on specific desired location, user can
save his/her source destination that he/she wants an alert on that location. Through getting
current location form GPS receiver on phone, user easily finds what his /her current location
is.

3.3.2. Product Functions

The main function of this application is to remind the task locations of user that has
dynamically set by user in application. Provide current location of the user on map. Tap the
task alert location easily on map and point a pin on it. Set the radius of particular location to
provide the notification alert on phone.

3.3.3. User Classes and Characteristics

The user of the system includes smartphone as end users.The common end user can use this
application for location based task alert. So that user never missed the location while
travelling in bus, car or train, and also reminder the location task that has to be done on
particular saved location.

3.4. Operating Environment

This application is specially designed and developed for the smartphone users. The operating
environment for this application requires any kind of smartphone which is operating through
android operating system.

3.4.1. User Side Requirements

The application be installed on Android based operating system. To use this application the
minimum version of Android operating system is 2.2 named as froyo.

27
Chapter 3: Software Requirement Specification GPS Location Rooster

3.4.2. Design and Implementation Constraints

Due to lack of knowledge about Android based application development and no proper help
available on search engines, locations routes management moduleis not implemented.

3.4.3. Assumptions and Dependencies

The Data network connection and GPS receiver must available, and tap the correct location
on map for notification alert.

3.5. External Interface Requirement

The external interface of application is based on the android application compress


programming kit, which is only executable on the android based operating system.

3.5.1. User Interface

User must be there to initiate a process, start the application, choose desired location and set
the desired task for the application.

3.5.2. ApplicationInterface

The application interface is quite simple and according to the mobile based application
designing interface. This application is integrated with SQLite database.

3.5.3. Hardware Interface

The application not interacts with any external hardware.

3.5.4. Communication Interface

GPS Location Rooster interacts with several operating system applications like task manger,
application that allows sharing, network permission, and enable GPS and Internet services.

3.6. Specific Requirements

This application have specific unique Google map key, generated with MD5 and SHA1 code.

28
Chapter 3: Software Requirement Specification GPS Location Rooster

3.6.1. Functional Requirement

Req#1: Integration of Google Map

Application must have updated Google map,and it be proper loaded with all locations.

Req#2: Getting Current Location of User

The application must show the current location of user on Google map.

Req#3: Location Task Name

User must enter a proper and valid task name of location so that it easily understand the
notification alert of that place.

Req#4: Set Alert Radius

Alert radius provides user to set the notification alert within specified location radius in terms
of meters, kilometres etc.

Req#5: Add Location Task on Application

Application gets the latitude and longitude values of desired location and save as a new task
alert.

Req#6: Delete Task Location

Application must delete the specified location task.

Req#7: Management of Location Task Notification

Application manages all saved location task.

Req#8: Preferences Setting

Preferences setting help the user to change the application settings e.g. Enable GPS and
Phone network services etc.

29
Chapter 3: Software Requirement Specification GPS Location Rooster

3.7. Other Non-Functional Requirements

Non functional requirements are said to be the qualities of the application, in other terms
quality constraints are non functional requirements.

3.7.1. Performance

Availability of fast data network, GPS coordinates and the power source assure the
performance of the application.

3.7.2. Security

Due to strong security mechanism of Android operating system application have strong
security semantics that provide users consistent usability.

3.7.3. Usability

Application provide user friendly interface, help the user to assist during using GPS Location
Rooster.Convenient for the all stakeholders to use with implementation of help menu within
the application.

3.7.4. Reliability

The system should be available for user, if user has turned on GPS receiver and high speed
internet service, the user can access the Google map rapidly.

30
Chapter 4: System Modeling GPS Location Rooster

Chapter 4

System Modeling

31
Chapter 4: System Modeling GPS Location Rooster

4. System Modeling

4.1. Use Cases

A Use case is a list of steps that defines the interactions between a role and a system, to
achieve a goal. The role is called the actor who can be anexternal system or a human.

4.1.1. Use Case: Add Location Task

Brief Description

This use case begins when end-user executes the application. The user can click on the menu
button to open the menu of application.

Table 4-1 Use Case: Add Location Task

Use case id UC-1

Use case name Add Location Task

Actors User

Purpose To add a new location task

Overview The user add the task information on the desired location.

Type Primary and Essential

Typical Course of events

Actor Action System Response

1. Use case begins as user request for 2. System open the activity menu from application
the menu item

3. User select the add task menu item 4. System redirects the user to requested menu item

Alternative Flows

32
Chapter 4: System Modeling GPS Location Rooster

None

4.1.2. Use Case: Delete Location

Brief Description

This use case begins when user executes the application. The user open the main task screen
of an application and holds the specific alarm, Delete task option appear, User click on it and
delete the specific task.

Table 4-2 Use Case: Deletion Location

Use case id UC-2

Use case name Delete location

Actors User

Purpose To delete a specific alarm task

Overview The user opens the main task screen and holds the specific alarm task to
delete.

Type Primary and Essential

Typical Course of events

Actor Action System Response

1. Use case begins as user open the 2. Application open the main task screen
main task screen

3. User holds the specific alarm task 4. System open the delete task option

5. User click on delete task option 6. Task is deleted

Alternative Flows

None

33
Chapter 4: System Modeling GPS Location Rooster

4.1.3. Use Case: Set Preferences

Brief Description

This use case originates when user run the application. The user open the main activity of the
application and press the menu button to open set the preferences setting on an application.
User can set the preferences setting bestowing to application usage.

Table 4-3 Use Case: Set Preferences

Use case id UC-3

Use case name Set Preferences

Actors User

Purpose To change the preferences setting of an application

Overview The user have to open the Preferences setting from application menu

Type Primary and Essential

Typical Course of events

Actor Action System Response

1. Use case begins as user open the 2. System open the preferences setting activity
menu items and select preferences

3. User set the settings according to 4. System must changes the preferences setting
the requirements

Alternative Flows

None

Pre-condition: Preferences option must be unwrapped.

Post-condition: System must change the settings.

34
Chapter 4: System Modeling GPS Location Rooster

4.1.4. Use Case: Update saved alarm

Brief Description

This use case begins when user open the main activity of an application. The user can select
the specific alarm and hold it for two second. A popup menu appears to update alarm.

Table 4-4 Use Case: Update saved alarm

Use case id UC-4

Use case name Update saved alarm

Actors Users

Purpose To update the specific alarm

Overview The user update the specific alarm

Type Primary and Essential

Typical Course of events

Actor Action System Response

1. Use case begins as the user open the 2. System show all the existing alarm on main activity
application. screen

3.Userselect the specific alarm to 4. System display the menu of specific alarm.
update it.

5. User update the alarm.

Alternative Flows

None

Pre-condition: User should be in Main activity.

Post-condition: System must update the alarm.

35
Chapter 4: System Modeling GPS Location Rooster

4.1.5. Use Case: Alarm setting

Brief Description

This use case begins when user open the main activity of application. The user can select the
specific alarm and all the details of alarm display on screen.

Table 4-5 Use Case: Alarm Setting

Use case id UC-5

Use case name Alarm setting

Actors Users

Purpose To change the setting of alarm

Overview The user change the setting of each alarm

Type Primary and Essential

Typical Course of events

Actor Action System Response

1. Use case begins as the user open the 2. System shows all the existing alarm on main activity
application. screen.

3.User selects the specific alarm to 4. System displays the menu of specific alarm.
update it.

5. User update the alarm.

Alternative Flows

None

Pre-condition: User should be in Main activity.

Post-condition: System must update the alarm.

36
Chapter 4: System Modeling GPS Location Rooster

4.2. Main Use Case diagram

Users of the system are categorised in three different classes, each having diverse levels of
access rights and system usage. The system’s use case diagram is given below:

User

Enable services

Add new Location

Update alarms

User

Set Preferences

Select location

Figure 4-1GPS Location Rooster User Use Case diagram

Description

User use case begins when user open the application. Popup window exposed, users enable
the GPS services. The system allow user to open the main screen of application, where the
entire task were displayed.

4.3. Sequence diagram

Sequence diagrams are used to describe system dynamics. Sequence diagram shows the
interaction between the objects. It is an interaction diagram that focuses on the time-ordering

37
Chapter 4: System Modeling GPS Location Rooster

of messages.Sequence diagrams are the most popular Unified Modelling Language artefact
for dynamic modelling, which focuses on identifying the behaviour within system.

4.3.1. Enable Services

User System

Run Application

Enable GPS and Network services

Message(Ok)

Figure 4-2 Sequence diagram: Enable Services

This diagram describes the actual flow of information between the user and the system, user
run the application and toast menu appear to remind the user to enable GPS, Phone network
and Internet settings to precede further. User clicks the Ok button and enables the services to
use the application. It describes the sequence of use case UC-1.

38
Chapter 4: System Modeling GPS Location Rooster

4.3.2. Add Location Alarm

User :System

Add new Location Alarm

Open Add task activity

Addalarm(Name, mode, radius... )

Location saved

Figure 4-3 Sequence diagram: Add Location Task

This diagram shows the flow of information between the user and the system. In which user
select the Add Task menu item form main activity and system open the new add task activity.
User fills all the prerequisite fields and also selects the desired location for alarm from
Google Map. Selected location store and user confirms to add new location task alarm in
application. The diagram describes the sequence of use cases UC-2.

39
Chapter 4: System Modeling GPS Location Rooster

4.3.3. Update Location Alarm

User :System

Hold Desired Location

Remove task

Confirm Task

Task Removed

Figure 4-4 Sequence diagram: Update Location Alarm

The above diagram demonstrates the flow of information between the user and the system.
The all-inclusive alarm task list be shown in main activity of an application, user hold the
desired alarm and a toast menu open to delete the specific alarm. User confirms the message
box option and alarm remove from the main task list of an application. The diagram describes
the sequence of use cases UC-3.

40
Chapter 4: System Modeling GPS Location Rooster

4.3.4. Set Preferences

User :System

Select Preferences

Open Preferences Activity

changeSettings(GPS/ Phone network & Internet settings... )

Settings changed

Figure 4-5 Sequence diagram: Preferences Setting

The above sequence diagram shows the flow of information between user and the system
while setting the preferences of an application. In preferences activity user set the radius of
alert location, enable and disable the GPS and internet services. These setting are changed
within this application. Without closing the application user change its whole setting. The
diagram describes the use case of UC-4.

41
Chapter 4: System Modeling GPS Location Rooster

4.3.5. Alarm Setting

User :System

Select Location

Open Popup window

Alert here, Edit and Delete Location

Close Activity

Figure 4-6 Sequence diagram: View Help

This diagram shows the flow ofspecific alarm setting, in which user select the specific alarm
and hold it for two second a popup window open with menu items, Alert here, Edit Location
and Delete the Location. The diagram refers to the sequence of use case UC-5.

42
Chapter 4: System Modeling GPS Location Rooster

4.4. Architectural Design

This figure defines overall process of how the requests flow from end-user to server and how
the end-user be served upon their requests.First layer contains all the user interfaces i.e. Web
pages that user use to interact with the system. User request to server by clicking on the pages
and requestbe sent to the Application Logic Layer where the request by the end-user be
checked and forwarded to the Data Access Layer. In Data Access Layer, query is generated
of the request executed on the data and the response of the request be sent back to the user.

Presentation Layer

Application Logic Layer

Add task module Remove task Preferences Help

   

Data Access Layer

Database

Figure 4-7 GPS Location Rooster Architectural Design

43
Chapter 4: System Modeling GPS Location Rooster

4.5. Database Design

Database was created in SQLite. Following is the Entity Relationship Diagram and Relational
Database Model of the mobile application.

4.5.1. Entity Relationship Diagram

Entity relationship diagram is intangible model for database design. It pronounces the data in
the system and relationship between the data. It describes data as entity, attributes and
relationship.

Following is the ERD of the application:

Figure 4-8 Entity Relationship Diagram

44
Chapter 5: System Construction GPS Location Rooster

Chapter 5

System Construction

45
Chapter 5: System Construction GPS Location Rooster

5. System Construction

Software engineering and development of the projects can be viewed as primarily a problem-
solving activity. Visual modeling using a variety of diagrams provide a structured approach
for students to relate problem-solving and communication as part of systems analysis and
design process.

5.1. Development Objectives achieved

The smart phones based on android operating system are growing in popularity each and
every month. In fact, as of this writing, there are over 10 billion users globally that take
advantage of android technology. These users include both consumers and entrepreneurs.
Developing a location based reminder for Android application, the use of GPS receiver in cell
phone and integration of Google map is very important and necessary.

The freeware allows users to add multiple locations, each with its own proximity radius
which, unlike that in i am coming, doesn’t have to be equal to or greater than 1 mile.  The
application keeps running in the background, waiting for the device to come within the
specified range of a saved locality, in the event of which, it alerts the user with a notification.
So if, for instance, user keeps forgetting to refuel his car on way back from work, all of need
to do is save a prompt for a nearby gas station on Android device using GPS location
Rooster.

The interface is very straightforward. The screen displays the Add New Taskoption by
pressing menu button. Tapping said option brings up a form where user can specify the
looked-for location either manually via Google Maps (Pick location from map) or
automatically, using current GPS coordinates (Use current location). To save a location while
pointing to it manually from the map, the user press menu button on his/her device and
clicksaveselection.

5.2. Development Track

The development of the project was started once the Google Map is successfully integrated
into the application. The very first step was to acquire the recent location of the user. Through

46
Chapter 5: System Construction GPS Location Rooster

which the user of application can easily check his current location on the Google Map. The
project passed through various learning process of Android development. Theenhancement
changes and refinement during the initial stages of development. Gradually all of the tasks
got clearer and development approach became more streamlined. Eclipse is explored, learned,
tested and used has provided several functionalities. Finally all the task were implemented
and integrated in to the application and were tested. The development tasks and approach are
discussed in detail below:

5.2.1.Database Design

The first task was to design and finalise Entity Relationship Diagram for the database. ERD
was drafted on paper initially. ERD went through three major evolutions and was finalised.
Once ERD was finalised, the actual designing of the database started. Database is designed in
SQLite. The Mobile databases are not as richer. The database table is designed according to
the project requirement.

5.2.2.Application Design

The architecture of this Mobile application, it is purely based on the general mobile based
application architecture. Mobile based applications were mostly designed as per architecture
of the operating system of the phone. Interface is simple and easy to interact with
it.Application is deployed at the user mobile phone, were an .apk file is installed using mobile
phone services and built-in database support allow the application to run on user phone.The
Architecture diagram of GPS Location Rooster is given below:

GPS-Satellite

Current Location
Desired Alert Location
Continuous Navigation
User-Side

Mobile Application

Location Receiver

Figure 5-9 General Architecture diagram


47
Chapter 5: System Construction GPS Location Rooster

The above diagram is a typical mobile architecture used to develop GPS based application
that involves requests from the user to get his/her current location on map using mobile GPS
receiver and set the location task on desired location.

5.2.3. Application Implementation

After the designing of the architecture of application, the next task was to develop the
Activity pages to implement all the use cases defined in the analysis phase. The number and
functionality of the activity pages to be developed was decided based on the use cases already
defined. The design of the activity pages was according to the functionality of the application.
Mobile based applications are very simple to use the functionality of all the modules that
were implemented in an application.

5.2.4. Google Maps Integration

The Android Maps API providesdevelopers to embed Google Maps in their own applications.
A single Maps API key is valid for all applications signed by a single certificate. To get a
Maps API key for the certificate, developers need to provide its certificate's fingerprint for
every individual developer to use it in application.This can be obtained using keytool. For
example, on Linux or Mac OSX, developers debug keystore like this:

$ keytool -list -keystore ~/.android/debug.keystore


...
Certificate fingerprint (MD5): 94:1E:43:49:87:73:BB:E6:A6:88:D7:20:F1:8E:B5:98
If application developers use different keys for signing development builds and release
builds, it need to obtain a separate Maps API key for each certificate. Each key only work in
applications signed by the corresponding certificate.

5.2.5. Saved Multiple Location Task Alert Notification

After all the work, multiple location task alert notification functionality be added, in which
user can add more than one location alarm in it. User can set specific location task alert.
Application provide alerts according to desired nearby location of user.

48
Chapter 5: System Construction GPS Location Rooster

5.3. Development and Build Environment

This application is a purely mobile based application, therefore the environment of its
deployment is purely mobile oriented i.e. the system would be installed on any Android based
mobile phone with a built in SQLite database running inside. A user has to connect with GPS
service internet service in order to use the application. Following are the system requirements
that were used to build this application are as follows:

5.3.1. Hardware Requirements

The hardware requirements to develop this application were as follows:

Table 5-2 Hardware Requirements

Processor Mobile processor

System type Android support phone

RAM 256MB

Memory 20MB

5.3.2. Software Requirements

The software requirements to develop and run this application were as follows:

The java based development requires Eclipse IDE software which is integrated with Android
SDK’s, the application deployed on smartphone which is HTC Sense Explorer. An Integrated
XML Editor in Eclipse IDE is used for User Interface and Adobe Photoshop CS 5 is used for
icons and image editor.

Following are different system specifications in which the application can run and operate.

49
Chapter 5: System Construction GPS Location Rooster

Table 5-3 System Specifications

Windows requirements Mac requirements Mobile requirements

Operating Windows XP, Windows Mac OS X 10.5.6 or


Android, 2.1, 2.2, 2.3
System Vista, Windows 7 later

Processor Intel Pentium 4 or later Intel Mobile Processor

GPS Support Yes Yes Yes

Internet Yes Yes Yes

Display Super VGA (1024 x 768) or higher-resolution 3.7"

5.4. System Testing

Testing is performed to ensure that the system that has been developed works according to
the requirements. The purpose of the system testing is to find defects in the system and to
ensure that the system or application is working properly. However, it can’t be guaranteed
that the system is hundred percent correct and there is no defect or error. There are different
testing techniques used in testing process to check how well system is performing.

5.5. Test Cases

A test case is a set of conditions or variables under which a tester checks that the system is
working properly or not. Test cases are used to test the functionality. Test cases are executed
according to a defined sequence of tasks and the expected results are defined before
execution. The actual results of execution are compared to the expected results and hence a
test case is said as pass/fail or not executed. All tests are performed with application up and
running on a local server with appropriate server settings.

Additional information can be included:

Test case ID, Use Case reference, Related number, Test category, Author, Pass/fail, Remarks.

50
Chapter 5: System Construction GPS Location Rooster

5.5.1. Test Case: Enable GPS Services

Brief description

In the Enable GPS Services test case, the functionality of the Services used to run the mobile
application is been checked. The GPS and Internet services are must enable to use the
application features.

Table 5-3Test Case: Enable GPS Services

ID: TC-1 Requirement # QA Test Engineer Name of Personnel

Version 1.0 Developer Awais

Test Date 15 July 2012 Use Case Reference UC-1

Revision History None

Objective To enable the GPS services

Environment Application must be in running form

Assumptions GPS services not available


Internet connection fail

Pre-requisites GPS and Internet services must enabled

Step # Execution Description Procedure Result

1. GPS service is enabled Application must enable the service


2. Internet service is enable Wi-Fi connectivity is required

Comments:
This start up activity is tested. In which application gives the message to Enable the required services
to use the application.

Status PassFailNot Executed

51
Chapter 5: System Construction GPS Location Rooster

5.5.2. Test Case: Add Location Task

Brief description

In this test case, the user open the add task activity from the main menu of an application, in
which user enter all the details of new location task and through Google Maps select his/her
desired location for notification alert.

Table 5-4Test Case: Add Location Task

ID: TC-2 Requirement # QA Test Engineer Name of Personnel

Version 2.0 Developer Awais

Test Date 15July 2012 Use Case Reference UC-2

Revision History None

Objective To add new alarm for task

Environment Application must be in running condition

Assumptions GPS connectivity fail


Internet connection fail

Pre-requisites Add task activity must be opened


Map is fully loaded

Step # Execution Description Procedure Result

1. Fields are tested Required fields must be filled


2. User must load the map Tap the location to get Lat/Long
3. Redirect to add task activity and save the new New location task must be saved
location task

Comments:
In Add task activity user enter the values in field and must load the desired location to save its desired
location for alert.

Status PassFail Not Executed

52
Chapter 5: System Construction GPS Location Rooster

5.5.3. Test Case: Remove Task

Brief description

The main objective of this test case was to remove the saved task on main activity of an
application. In main activity user hold the task and Delete task option show to delete the
specific task.

Table 5-5Test Case: Remove Task

ID: TC-3 Requirement # QA Test Engineer Name of Personnel

Version 3.0 Developer Waqar

Test Date 15July 2012 Use Case Reference UC-3

Revision History None

Objective To delete the task

Environment Application must be running

Assumptions Database activity crashed

Pre-requisites User must open the main activity


Required task must be deleted successfully

Step # Execution Description Procedure Result

1. Main activity should be accessed Main activity is accessed


2. Required task should be selected Required task must taped
3. Desired task should bedeleted Task deleted
4. Desired task must be deleted from main activity Task is deleted from activity

Comments:
The main activity is opened and user must tap the desired task which has to be deleted

Status PassFail Not Executed

53
Chapter 5: System Construction GPS Location Rooster

5.5.4. Test Case: Set Preferences

Brief description

The main objective of this test case was to check the setting of an application. Through
preferences main item, user set the application whole setting.

Table 5-6Test Case: Set Preferences

ID: TC-4 Requirement # QA Test Engineer Name of Personnel

Version 4.0 Developer Waqar

Test Date 15July 2012 Use Case Reference UC-4

Revision History None

Objective To set the preferences setting of an application

Environment Application must be in running condition.

Assumptions Application server crash

Pre-requisites Preferences activity must be accessed


Required activity should be open to make changes

Step # Execution Description Procedure Result

1. Preferences activity should be accessed Preferences activityis accessed


2. Required activity should be opened Required activity opened
3. Setting should be changed Setting changed

Comments:
The preferences setting of an application is tested. In which user can change the setting of an
application without closing it.

Status PassFail Not Executed

54
Chapter 5: System Construction GPS Location Rooster

5.5.5. Test Case: Set Preferences

Brief description

The main objective of this test case was to check the setting of an application. Through
preferences main item, user set the application whole setting.

Table 5-5Test Case: Alarm Setting

ID: TC-4 Requirement # QA Test Engineer Name of Personnel

Version 5.0 Developer Waqar

Test Date 15 July 2012 Use Case Reference UC-4

Revision History None

Objective To change the setting of each location alarm

Environment Application must be in running condition.

Assumptions Application server crash

Pre-requisites Preferences activity must be accessed


Required activity should be open to make changes

Step # Execution Description Procedure Result

1. Alarm activity should be accessed Alarm activity is accessed


2. Required activity should be opened Required activity opened
3. Setting should be changed Setting changed

Comments:
The preferences setting of an application is tested. In which user can change the setting of an
application without closing it.

Status PassFail Not Executed

55
Chapter 6: Conclusion and Scope of further work GPS Location Rooster

Chapter 6

Conclusion and scope of further work

56
Chapter 6: Conclusion and Scope of Further Work GPS Location Rooster

6. Conclusion and Scope of Further Work

In the overall development of GPS Location Rooster, core software engineering concepts,
models and development methodologies are used.

6.1. Introduction

This project has been completed successfully because all the objectives have been achieved.
The applicationhas been verified against the requirements and found to be successful when
compared to the test cases and requirements. All modules of application is working perfectly
and conferring to the requirements. This application is developed for the smartphone users to
remind their tasks on different locations. Application is very help full for the user to save
their desired location by using Google maps. Application provides user current location on
map through which user easily catch their self on map and tap the desired location of
notification alert. A notification alert feature provides an easy way to get the locations task
notification, so that the user never lost their place. Through setting radius standards of each
task alert provide user to give notification alert, when user enter in specified task alert area.
Location task management provide user to manage their whole task alert.

6.2. Achievements and Objectives

Objectives of this project have been achieved and accomplished. The main objective that has
been achieved is the knowledge of developing the mobile based application refined the
concepts regarding the application like using GPS values getting the current location of user
through GPS receiver and save the latitude and longitude values, updated Google maps
integration in application, designing and modelling of the system. Using the Google open
source API’s for Android development the application features enhanced and the
performance of application is increased. Android Virtual Device (AVD) is used to developed
and test the application on system.

The second objective that has been attained is the skill in using Java for mobile application
development and Eclipse IDE. The entire submission was built using Android operating
system,Java as a programming language, XML is used for light weight layout of smartphone
applications and SQLite is used for mobile database. Express were the necessary tools in the

57
Chapter 6: Conclusion and Scope of Further Work GPS Location Rooster

development of the application that have been learnt. Application is designed to install and
run on all the version of Android operating system.

6.3. Future Recommendations and Improvements

Every single object needs some improvement in this way or that. The application has been
carefully designed to cater to the current needs of the users and therefore must be properly
managed to adapt the future needs of users be looking for in the times to come. Further work
can be done to improve the design and the user-interface. User can share his/her location with
their friends by sending the text message through this application. With the passage of time
Google introduces further API’s of Android application development. Location based
services are increasing day by days. The Android provides an open source development for
all the developers over the world.

58
Appendices GPS Location Rooster

Appendices

Appendix I – Definition of Terms

API: is stand for "Application Program Interface," it is also called as"Application


Programming Interface." An API is consists set of commands, functions, and protocols that
programmers can use when building their application for multiple purposes. The API allows
the developer/programmer to use predefined built-in functions to interact with the operating
system. [5]

AOSP: The Android Open Source Project (AOSP) is an initiative created to pave a way to
development of theAndroid based mobile application platform. The Android platform
consists of the operating system, middleware application and integral mobile applications. [5]

AVD: Android Virtual Device is used to construct Android’s emulator to artificially signify


an actual mobile device. An AVD modeled to the specifications of actual mobile device
empowers developers to assessment their Android applications rather than separate mobile
phone. [5]

ADT: Android Development Tools kind of data abstraction where a type's internal form is
hidden behind a set of access functions. Values of the type are created and inspected only by
calls to the access functions. This allows the implementation of the type to be changed
without requiring any changes outside the module in which it is defined. [5]

GPS:A system for determining position on the Earth's surface by comparing radio signals
from several satellites.24 satellites are moving round the global, at least four are required for
accurate current location.Depending on geographic location, the GPS receiver samples data
from up to six satellites, it then calculates the time taken for each satellite signal to reach the
GPS receiver, and from the difference in time of reception, determines the location. [7]

IDE:is known as Integrated Development Environment, A set of programs run from a single


user interface. [6]

59
Appendices GPS Location Rooster

JDK:Is known as Java Development Kit,which offers the environment essential for


programming in Java language. The JDK is available for a range of platforms, but most
notably Sun Solaris and Microsoft Windows used the JDK. [4]

SQLite: SQLite is an in-process library that implements a self-contained, zero-configuration,


server less, transactional SQL database engine. The source code for SQLite exists in the
public domain and is free for both private and commercial purposes. [6]

XML: XML Query Language (XQuery) is a query and programming language for processing
XML documents and data. XML data and other databases that store data in a format
analogous to HTML can be processed with XQuery. The main objective of XQuery is to
provide query mechanisms for data extraction from real and virtual Web based documents. it
links web and data with the help of xml. [6]

Lat: Latitude

Long: Longitude

OS: Operating System

User: Someone who uses the application

60
Appendices GPS Location Rooster

Appendix II – Installation Guide

This application is install on smartphones having Android based operating system in it.
Through eclipse tool an “APK” file generate which is copy on smartphone and through
installation wizard application is automatically install on smartphone. The Android SDK
version 2.2 is used for applicationsdevelopment, hence the smartphones must have installed
this version to use it.

61
Appendices GPS Location Rooster

Appendix III – User Manual

7. Add a new location

When a user clicks the icon of GPS Location Rooster, the main screen appears on which
application show the message ‘Tap here to add a new location’. When user tap the screen
another activity of application opened to add the location for alarm.

62
Appendices GPS Location Rooster

8. Current location on map

User tap the screen to add a new location next activity open which shows the current location
of the user on Google map, through which user get a quick look of his/her current location on
the map. Application gets the current location of user from GPS or Phone network. A
location pin points on the map, through which user easily see his/her location on map.

63
Appendices GPS Location Rooster

9. Add location for alarm

User long press on the map to select the desired location for alarm, a toast message screen
appear which shows the location name and complete address. Another message also appear
on the screen which shows the difference of user current location and its desired alarm
location in kilometre.

64
Appendices GPS Location Rooster

10. Save new location

A popup message screen open which shows the latitude and longitude values of desired
location and also shows the address of a location. User press the OK button an activity open
which asks the user to enter the location name. User gives the name of location and press OK
button to save it as a new location.

65
Appendices GPS Location Rooster

11. Location alarm details

When user save the new location, alarm details activity open which display all the alarm
setting. Alarm details heading allow user to activate the alarm service, location menu help the
user to view the alarm location or to edit the saved location. Preferences menu use to select
the radius for alarm alert. Units deliver the capability to select the units according to their
requirements e.g. (meters, kilometres, foot). Location provider menu assist the user to select
the location service provider e.g. (GPS, Phone network, Passive). Old location warning use to
give the alert of already saved locations.

66
Appendices GPS Location Rooster

12. Alarm Setting

Alarm setting menu let the user to change the alert setting of location alarm. It allow the user
to on/off the sound, select the ring tone for alert, on/off the crescendo, vibration alert on/off,
speech on/off and popup message on/off to show the message of location alert.

67
Appendices GPS Location Rooster

13. Location Task List

Application main screen show all the saved locations on main activity screen of the
application. The title and mode of their transportation display on screen. User set the desired
number of alarm with no limitation.

68
Appendices GPS Location Rooster

14. Location Menu Items

User select the specific location and hold it for 1 sec, a menu list open and show the menu
items of location. Alert here option activate the alarm. Edit location option move towards the
alarm edit menu to change the setting of location and Delete location delete the location form
application.

69
Appendices GPS Location Rooster

15. Notification alert

The notification centre of smartphone shows the alarm activation and its away distance from
user current location. This feature helps the user to get the location distance and he/she get a
quick notification of location.

70
Appendices GPS Location Rooster

16. Location Alert

When user save the new location alarm, approaching destination activity is open and show
the away distance of desired location alarm and also show the location data history in. This
activity also helps the user to show the entire saved location list and edit the current alarm
location. Cancel alarm feature provide the user to cancel the current alarm.

71
Appendices GPS Location Rooster

References

[1] Android, Android Information

http://www.android.com/

[Accessed:03Jan 2012]

[2] Google Developers, Google for Android Developers

https://developers.google.com/android/

[Accessed:11Jan 2012]

[3] Java Code Geeks

http://www.javacodegeeks.com/2011/01/android-proximity-alerts-tutorial.html
[Accessed: 15 Mar 2012]

[4] Android-er

http://android-er.blogspot.com/2009/11/mapview-to-center-on-current-location.html

[Accessed: 24 Mar 2012]

[5] Android Central

http://www.androidcentral.com/

[Accessed: 5 Apr 2012]

[6] Java 2 Source, Android Application Learning

http://www.java2s.com/Open-Source/Android

[Accessed: 11 Apr 2012]

72
Appendices GPS Location Rooster

[7] Android Development, Applications made for Android

http://www.androiddevelopment.org/

73

You might also like