FYP Complete Update
FYP Complete Update
051-17-127228
Iqra University
2021
Certificate
We hereby accept the work contained in this report titled: Police Alert, as a confirmation to the required
standards for the partial fulfillment of the degree of Bachelors of Science in Computer Science.
iii
Chapter 1 Introduction
Everyone needs to have a sense of safety in the city. In this application, you'll have the option to
alert the nearest police watch vehicle and any dubious development around you. Using this
application, you'll alert the police with an alert catch that would exhort the police concerning
your present territory using GPS, and a call alternative is additionally accessible to contact on the
police helpline. After introducing this application you'll have to enroll yourself by entering your
accreditations which incorporate the name, number, email, and place of residence. If you are a
casualty or observer of a dangerous circumstance, you may contact the police through talk, send
photographs, send a voice note, and your present area to the closest police headquarters and you
see the red zone territory which has more danger. You will stand out enough to be noticed from
the closest police headquarters. S.O.S is added, where the client can amount to five telephone
numbers to a rundown of companions, relatives, or guardians, they will be reported using SMS
and your present GPS location with the crisis message will be dispatched off them through
message once the S.O.S button is squeezed.
v
these highlights were not accessible previously. With the police alert application, the client will
utilize all the above notices include free and without any problem. I have coordinated a sing up
page to stay away from the abuse of the application.
1.1.1. Objectives
I'm making this application since individuals everywhere in the world face various wellbeing
issues. Individuals face difficulty when a crisis emerges. At the point when they call the nearest
police headquarters for help, they are generally met with a stand-by. At the point when the
telephone line is occupied, the police don't react. I will make an Android application for police
and resident assurance called the police Alert App. Since wrongdoing or crisis needs support
from individuals as quick as could be expected
1.1.3. Methodology
The proposed system will help and figure out which citizens are in a trouble situation. The user
will launch Police Alert App on the android phone, take a snap of the trouble situation and attach
a voice note or text. The app will get the current location via phone GPS (Global Positioning
System) and send the report to the nearest police station for help. Our Android app will give
users the freedom to call directly from the listed police helpline. I will adopt the incremental
model for this Application and MVC Architecture.
1.1.4. Product Scope
Police Alert application SOS administrations could help all residents of a specific region that
incorporate particularly ladies and youngsters who are confronting badgering or whatever other
issue which require police aide. This application will tell and send the report to the closest police
headquarters. Essentially press the Alert Button on this application to send a report to the closest
police headquarters. Everybody needs to have a sense of security out and about. This application
is useful to resident security. It won't waste your time. You may contact the police through talk,
send snaps, send a voice note and your present area to the closest police headquarters and you
see the red zone region which has more danger. You will stand out enough to be noticed from the
closest police headquarters. Call choice is likewise accessible to contact on the police helpline.
Clients can contact straightforwardly to the closest police headquarters through the devoted
police number recorded inside the application. S.O.S highlight is added, where the client can
amount to five telephone numbers to a rundown of companions, relatives, or gatekeepers, they
will be told through SMS and your present area with the crisis message will be shipped off them
through message once the S.O.S button is squeezed. We trust that this APP makes more security
for ladies and residents and makes the crime percentage less.
The client should have fundamental information on utilizing the internet. This product needs two
sorts of clients. Public and police. The client can do the accompanying capacity
User:
Sign up or log in
Alert the closest police headquarters through Alert catch
Contact the police through helpline number and through given recorded number of
closest police headquarters and send voice note, snap and instant message.
Police:
Frontend: XML
Backend: Java
Android device
Android studio
Firebase
1.2.1. Registration
As this is the underlying phase of the application the client should enroll in the wake of
After launching the application users has to register. The priority of this feature
3
The clients need to fill in the essential data
If the client fails to remember the secret password, the old secret password
can be recovered.
1.3.2.1 Response Sequence
REQ 2: The User should have a record for utilizing this component.
1.4.2.4Functional Requirements
REQ 2: The User should have a record for utilizing this component.
1.4.1Performance Requirements
The latest techniques and android recommended way of code will be used to store and
retrieve data when required. Data will be populated within the app with the latest techniques
An online database will be maintained to store and fetch user data when required.
For safety measures, data will be store on secure servers for example firebase
end-to-end encryption.
To forestall abuse of the application we have made a login prerequisite, so just approved clients
can sign in and report to the police. The protection of the client will be protected thusly.
The phone ought to have working web access (either data or Wi-Fi) just as the framework ought
to have an Android framework.
1.5 Scenarios
Register
Login
Available options: call helpline, S.O.S, call the nearest police station, red zone area, and
report a crime.
Click report a crime
Select the type of crime from a drop-down menu.
Add location to the message.
5
Add snap, text, or voice note to the message
Generate report and send to the nearest police station.
For S.O.S click the S.O.S feature
Add five phone numbers (guardians, relatives, friends)
In emergency launch S.O.S.
An emergency message with the current location will be sent to listed numbers via SMS.
To identify the red zone launch the red zone feature.
A list of red zone areas will be displayed within the app, based on the crime rate.
.
This was "Chapter:1 Introduction" of our Final Year Project Report. In this part, we discussed
our task, what it will be, what features it would offer, what are its objectives, what is the reason
for this endeavor picking and the wide scope of different fundamental experiences about our
endeavors for instance Police Alert
Chapter 2 Literature Review
7
2.1. Introduction.
In this part, we will break down different applications and check what are flaws, limitations, and
how we can dispatch an application without absconds which are existing in various applications,
and how we can improve the highlights and can offer more sorts of administrations and make it
all the more simple to utilize
Following are the Application which is providing safety for the citizen. They are discussed for
the sake of analysis and comparison.
Rawalpindi Police
Zainab Alert
SOS Alert
2.2.1. Terminology
Android based: Android is a portable working framework dependent on a changed form
of the Linux part and other open source programming, planned fundamentally for touch
screen cell phones, for example, cell phones and tablets.
Java language: Java is a class-based, object-oriented programming language. It is
utilized to create desktop and mobile applications
Front end: The front end is the visual piece of the application that the client interfaces
with, the front end is composed utilizing XML.
Firebase: The Firebase Realtime Database is a cloud-facilitated data set. Information is
put away as JSON and synchronized in real-time to each associated customer.
I will make this app in java language in android studio. For the front end of my app, I will use
XML and for maintaining the database I will use firebase
As all the functionalities of the below application are discussed we get to know that Rawalpindi
police give you online reporting facilities. Zainab Alert gives you online reporting facilities like
child found reporting and missing child reporting facilities. SOS Alert featured to alert to your
guardian through SMS and via current location in a risk situation. After research, there is no
8
contender exist of Police Alert App. As a matter of first importance no specific application
accessible in the market to tackle this ongoing issue which this item is addressing. These
Applications are giving some little highlights however not that accommodating to take care of
the issue. Like red zone region, Alert closest police headquarters, current area, Chat, SOS, and so
on there isn't anything that can draw in us to add as an element in the Police Alert Application
since we have effectively covered a large portion of the highlights which must be in Police Alert
Application
9
Figure 1- Rawalpindi Police
2.2.2.2 Zainab Alert
This App was a joint venture of Invent Lab and Law Enforcement Agencies the application will
ensure timely reporting of rape cases and help the police reporting and recovering missing
children. For announcing missing youngsters and was officially initiated episode report should
be documented. You give them definite data about the case. How and when did you discover the
kid was missing? What were the conditions that prompted the incident? When was the kid seen
once and for all? The application will alarm all specialists, and a cross-country look for the
youngster will follow.
11
2.2.2.3 SOS Alert
SOS Alert is a crisis application that assists you with the trip at whatever point your security is in
danger by connecting with your crisis contacts and giving them your present area. If there should
arise an occurrence of crisis, you need to press the SOS gadget, a connection of your present area
on Google maps is shipped off the crisis contact that you have enlisted in the application so they
can find you precisely. Register numbers will get S.O.S in the type of SMS which was sent from
the application to enrolled portable numbers.
After the comparative study, the limitations of existing applications are as follows:
Rawalpindi Police app is limited to one city only. This app does not work out site
Rawalpindi.
Zainab Alert gives you child missing and found child facilities. There are no options to
report other crimes.
SOS alert gives you facilities to alert your guardian through SMS and current location in
a risk situation.
The aim of the police Alert app is to facilities the user and provides them ease and relaxation in
the manner of safety, risks, and time. As the other application isn't like this however some little
highlights and has a few issues and restrictions. The app is intended for a large audience not
limited to one city. As the application similar to this has some problems Police app overcomes
all the problems and will provide the user with worry less procedure will the safety.
13
Table 1.1 illustrates the comparative analysis of existing Application with Police Alert
2.5. Summary
This document aims to provide the detail, analysis, and comparison studies between Police Alert
App and existing applications. Features and Specification are discussed for sake of compression.
The focusing and unique feature of the Police Alert App is also described which makes it unique
from other applications mentioned in the documents.
References
15
3.1. Introduction
The principal prerequisite for this venture was the sign-up module. The sign-up module is
prepared. Presently every individual who utilizes this task should join. For this, he/she should be
joined through his/her authority name, sex, email address, and cell phone. When the portable
number is checked he/she will want to utilize this App. The sign-in account page is prepared.
This section is the itemized configuration used to assemble a Police Alert Application. The
Application is utilized to make the capacities and tasks of a great deal of the social affair
prerequisites exhaustively including screen format, Report Crime rules, measure chart, and the
greater part of the other element documentation. The yield of this part portrays the online Police
Alert Application framework as another report wrongdoing and check red zone region
framework which is planned as the assortment of modules and subsystems. This planned stage
takes every single introductory prerequisite. A bunch of more planned components utilizing
various models is created. These plan components show the necessary programming highlights
exhaustively including screen format, class chart, and practical chain of command outline, and
use case graph. These graphs are for depicting the framework exhaustively.
3.1.1. Purpose
Application, Police Alert App clients who need to report the wrongdoing in the most ideal
manner like they can send a picture, voice note, text, and current area. Clients can likewise check
the red zone region and call to helpline through this Application. It gives a stage to residents to
report wrongdoings to police all the more effectively utilizing the most recent tech. Residents
and police with aggregate exertion will diminish the wrongdoing activity through this application
and aiding one another. The application's center reason for existing is to lessen the time taken
while revealing and become a scaffold between resident and law authorization offices. This
Application gives a free-cost plate structure for all residents. The principle motivation behind
this section is to show the underlying plan of the application and how I will plan this application.
How I will plan distinctive significant components of this application. The primary motivation
behind this application is to.
1. To alert the nearest police station for any emergency with just a press of a button. If you
are in trouble or see suspicious activity around you.
2. To provide users efficient medium which includes call options, sharing snap, live
location, and contact number of the nearest police station to report a crime.
3. To enable the public to report any incident near them and help police to identify criminals
easily. .
4. To help agencies and provide process able evidence of the incident scene.
5. To enable users to send an S.O.S to their guardians with location and instantly alerts the nearest
police force for urgent attention.
6. To remind the user to notify the nearest police station or vehicle inconvenient, easier and
fastest way.
17
3.1.4 Designed module
19
3.1.4.3 Design Map
Characterize all significant plan ancient rarities and additionally significant areas of this report
and if suitable, give a synopsis of each. Talk about any critical connections between plan relics
and other task ancient rarities.
3.2.1. Assumptions
3.2.2. Constraints
We utilize the incremental module way to deal with isolates the undertaking into pieces and
afterward start plan parts of tasks individually. I will utilize the incremental module as a
programming system. I will utilize XML, for front-end improvement, and for backend, I will
utilize JAVA and PHP will be utilized as a worker-side inspecting language. Additionally, I will
utilize Firebase, for keeping up the information base.
3.3. Architecture
There are numerous practical deteriorations of the projection. First was the plan which is
finished. The second is execution which is in progress. There is much sub-practical decay of the
execution. First is the sign-up page. After the sign-up page, there is a sign-in page. Disregard the
secret word page connect on the sign-in page. And afterward, a dashboard where the client will
report the wrongdoing. What's more, information base tables are associated with applications that
performing capacities like putting away information, getting information, and keeping up profile
information.
The Police Alert application is an Android-put together Application based on the multi-levels.
The engineering incorporated the three sorts of utilization layers. These three application layers
are as per the following
1. User-side
2. Server-side
3. Police-side
This application will follow three structures tires. The principal tire is on the client's side. On the
User-side the client enrolls their self then the login and opens the Police Alert application and
reports the wrongdoing. To report wrongdoing they need to initially choose the classification of
wrongdoing at that point add required information like appending screen capture, adding text and
voice note, client area will be joined, and afterward squeezing affirm report will send the report
to the worker. This Android-based application will be gotten to by each client with the assistance
21
of a web association. The second is the worker side" where all the information base is kept up
like client profiles and red zone region subtleties. The worker side likewise gets the wrongdoing
report and stores all data from the client-side in the information base and afterward this report
push to the police side. The third one is the police side. The police side got the message pop-up
from the worker side. Message pop-up contains wrongdoing reports created by clients. Police at
that point make the move against the revealing wrongdoing. These three levels make the entire
design of this Application.
3.3.1 Overview
There are numerous utilitarian disintegrations of the projection. First was the plan which is
finished. The second is execution which is in progress. There is many sub utilitarian decay of the
execution. First is the sign-up page. After the sign-up page, there is a sign-in page. Disregard the
secret phrase page interface on the sign-in page. And afterward, a dashboard where the client
will report the crime.SOS include, helpline, Red zone region, close by police headquarters, when
a client reports wrongdoing the and select the class of the wrongdoing at that point is creator
screen which adds a picture, voice note, current area, close by police headquarters and afterward
ship off the closest police headquarters. Furthermore, information base tables are associated with
applications that performing capacities like putting away information.
In this application, the principal part is enlistment which has a name, phone email address, sexual
orientation, and secret word field with login, information exchange, and neglects catches. After
entering these qualifications framework saves that individual and confirms for login into the
framework and if the client fails to remember the secret key so he can recuperate by entering his
email address. The first segment is wrongdoing revealing and when the client reports the
wrongdoing, chooses the wrongdoing type at that point adds a picture, voice note, add text,
current area and afterward ship off the closest police headquarters. The subsequent segment is
SOS include, where clients enroll any five numbers of their family if any crisis builds client can
press the SOS button, A SOS will be sent with the current area and message to enlist the number
with crisis message. The third segment is the red zone region, the client can check the red zone
region by rundown or guide see. The forward part is clients can likewise check close by police
headquarters in list view and guide see. The fifth part is a helpline where the client can call to
police helpline through this application. I will share the component and capacity underneath in
this record.
1. Registration Module
I partition the undertaking into modules. First I have planned the information exchange and login
and afterward, I planned the fundamental screen. After that, I made associations with the data set
for the enrollment. Furthermore, rest will be done in execution. I took help from YouTube,
23
GitHub, Stack Overflow, and numerous different sites which control the android developers in
making any application and association with the worker.
1. Level zero
Here is the Data flow diagram of level zero for Police Alert
2. Level 1
Helpline
Nearbypolice
stations
Send SOS
Report
vandalismdamage
Crime report
View report Dashboard
Sign up sign up
User
Police
Login
Login
Red zonearea
display
SOS send
Displaynearby
policestations
25
Helpline dialed
3.4.2. Process Flow Diagram
Process flow diagram of the Police Alert
.
3.4.3. Tables, Fields, and Relationships
These task tables contain text and pictures, voice notes current area. Text information contains an
email address and, secret phrase, message; fail to remember the secret key, wrongdoing report.
Relationship will be required for my undertaking yet that will be for the back end. Like if a client
enters an invalid email address or invalid password for log-in and sign-Up.
3.4.3.1 Databases
As our venture is Online based application so after research we discovered that the Firebase data
set will be appropriate for our application. We will associate this information base with the
models of the applications and utilize this by applying various capacities.
User
Police
Crime report
Allow
Table Name Field Name Data Type Field Description
Nulls
This table will contain name,phone
Varchar
User user
(50)
No number, email address, gender and
password
This table contain phone number,
Varchar
Police police
(50)
No police station name, police station
location, password
This table will contain crime report
type,image,voicenote,text,current
Varchar
Crime report Crime report
(50)
Yes location,phonenumber,nearby police
station number, police station
locationphone number is (foreign key)
27
3.4.3.3 Fields Change(s)
Table 3.4
3.6.1Class Diagram
1. User
Here is the utilization case for Police Alert
29
2. Police
Here is the utilization case for Police Alert
3.6.2. Sequence Diagram
31
1. Sequence diagram for User
2. Police
Here is the use case for Police Alert
33
3.7. User Interface Design
Figure3.1
Figure 3.2
35
Figure 3.3
Figure 3.4
37
3.7.1. Application Controls
Each screen doesn't have a typical factor between them. I put a vital picture that first and
foremost comes in the front-end plan. However, every one of the photos is very different from
others. I show distinctive usefulness in this screen capture. I put all the underlying essential
screen captures that have all underlying control capacities.
3.7.2. Screenshots 1… N [do either these or the ones in chapter 1 from SRS]
Figure 3.5
Figure 3.6
39
Figure 3.7
Figure3.8
3.8. Summary
Police Alert App is tied in with making wrongdoing detailing more effective through appropriate
utilization of innovation. Give residents the chance to partake adequately to bring down the
crime percentage and ready law authorization offices on schedule. The fundamental reason for
this section is to make various plans and guides to make the Application simpler and easy to use.
This section will help a great deal while carrying out various cycles. This section covers
practically the whole task.
41
Chapter 4 Implementation
4.1. Development Methodologies
Android Phone
43
45
47
49
51
53
55
57
59
4.3. Summary
In this part, I will characterize the approach and execution of the Android-based Application. All
clients will discover and effectively handle crises in this Android-based Application. The
Application clients will handily communicate with each Police station. Likewise, clients report
wrongdoing effectively and proficiently.
Chapter 4 Implementation
4.1. Development Methodologies
61
4.2.3. Testing tools
Android Phone
63
65
67
69
71
73
75
77
4.3. Summary
In this part, I will characterize the approach and execution of the Android-based Application. All
clients will discover and effectively handle crises in this Android-based Application. The
Application clients will handily communicate with each Police station. Likewise, clients report
wrongdoing effectively and proficiently.
Chapter 4 Implementation
79
4.1. Development Methodologies
Android Phone
81
83
85
87
89
91
93
95
97
4.3. Summary
In this part, I will characterize the approach and execution of the Android-based Application. All
clients will discover and effectively handle crises in this Android-based Application. The
Application clients will handily communicate with each Police station. Likewise, clients report
wrongdoing effectively and proficiently.
Chapter 4 Implementation
4.1. Development Methodologies
99
4.2.3. Testing tools
Android Phone
101
103
105
107
109
111
113
115
4.3. Summary
In this part, I will characterize the approach and execution of the Android-based Application. All
clients will discover and effectively handle crises in this Android-based Application. The
Application clients will handily communicate with each Police station. Likewise, clients report
wrongdoing effectively and proficiently.
117
Chapter 4 Implementation
4.1. Development Methodologies
Android Phone
119
121
123
125
127
129
131
133
135
4.3. Summary
In this part, I will characterize the approach and execution of the Android-based Application. All
clients will discover and effectively handle crises in this Android-based Application. The
Application clients will handily communicate with each Police station. Likewise, clients report
wrongdoing effectively and proficiently.
Chapter 4 Implementation
137
4.1. Development Methodologies
I have utilized incremental methodology as a software engineering model. In this incremental
model, that entire prerequisite is isolated into different forms. Different improvement cycles
occur here making the existence cycle a multi-waterfall cycle. Cycles are separated into more
limited; all the more immediately oversaw modules. An incremental model is a sort of software
improvement model comparative V-model, Agile model, and so forth in that model, every
module moves into the details, design, execution, and preliminary stages. A useful form of the
product is given during the main module; thusly you have activity software almost immediately
through the product development cycle. Each ensuing declaration of the module adds capacity to
the early freedom. The cycle continues till the whole framework is finished.