0% found this document useful (0 votes)
363 views

Criminal Record Management System - TutorialsDuniya

This document describes a software engineering project for a Criminal Record Management System. It will allow police departments to manage criminal data in their jails through a web-based application. There will be separate login types for administrators and authorized users, with admins able to read and write to the database and other users only able to read records. The system will also have the ability to match criminal records by photo or sketch. The document outlines requirements, provides data flow diagrams, and discusses estimation of size, cost and scheduling for the project.

Uploaded by

roshini rose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
363 views

Criminal Record Management System - TutorialsDuniya

This document describes a software engineering project for a Criminal Record Management System. It will allow police departments to manage criminal data in their jails through a web-based application. There will be separate login types for administrators and authorized users, with admins able to read and write to the database and other users only able to read records. The system will also have the ability to match criminal records by photo or sketch. The document outlines requirements, provides data flow diagrams, and discusses estimation of size, cost and scheduling for the project.

Uploaded by

roshini rose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

TUTORIALSDUNIYA.

COM

Criminal Record
Management System
Software Engineering Project

Download FREE Software Engineering Projects for any


university student of BCA, MCA, B.Sc, M.Sc, B.Tech at
https://www.tutorialsduniya.com

If you find any error or mistake in this Software Engineering


project then report at [email protected]

Please Share these SE Projects with your Friends


Download FREE Software Engineering Projects from TutorialsDuniya.com

CRIMINAL RECORD MANAGEMENT


SYSTEM

om
SOFTWARE ENGINEERING PROJECT REPORT

.c
ya
B.Sc. (H) Computer Science

i
un
D
ls
ia
or

Rahul Gupta Rahul Ray Srishti Gupta Tanya Garg


16035500000 16035500000 16035500000 16035500000
t
Tu

Department of Computer Science


Keshav Mahavidyalaya
University of Delhi

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

ACKNOWLEDGEMENT

In the accomplishment of this project successfully, many people have best owned upon us their

om
blessings and the heart pledges support, this time we are utilizing to thank all the people who

have been concerned with this project.

.c
Primarily we would thank god for being able to complete this project with success. Then we

ya
would like to thank our principal TutorialsDuniya.Com and our software engineering

teachers TutorialsDuniya.Com and TutorialsDuniya.Com whose

i
valuable guidance has been the once that helped me patch this project and make it full proof
un
success. Their suggestions and his instructions have served as the major contributor towards

the completion of the project.


D

Then we would like to thank our parents and friends who have helped me with their
ls

valuable suggestions and guidance has been very helpful in various phases of the
ia

completion of the project.


or

Last but not the least we would like to thanks our fellow mates who have helped us a lot.
t
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

CERTIFICATE

This is to certify that the software engineering project report entitled “Criminal Record

om
Management system (CRMS) is the work carried out by Rahul Gupta, Rahul Ray, Srishti

Gupta, Tanya Garg, student of B.Sc. (h) Computer Science, IV semester, Keshav

.c
Mahavidyalaya, University of Delhi under the supervision of TutorialsDuniya.Com.

ya
This report has not been submitted to any other organization / institution for the award of any

other degree/diploma.

i
un
Supervisor Teacher In-Charge
D
ls

TutorialsDuniya.Com TutorialsDuniya.Com
ia
or

Principal
t
Tu

TutorialsDuniya.Com

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

ABSTRACT

om
The main aim of the project is to develop a Criminal Record Management system. The project is

.c
mainly useful for police departments. This system will help to manage all the data of the criminals

of a jail. There are either only web-based applications or it is driven manually in most of the

ya
organizations. The application will provide a multiuser platform. There will be two types of login

in this, one will be the admin user and other will be the authorized user. The admin can read and

i
un
write data on the database. The authorized user could only read records from database. There will

also a functionality to match the criminal record by matching with a sketch/picture.


D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

TABLE OF CONTENT

om
1. SPECIFIC REQUIREMENT SOFTWARE ............................................................................... 1
1.1 INTRODUCTION:................................................................................................................ 1

.c
1.2 FEATURES:.......................................................................................................................... 1
1.3 PURPOSE: ............................................................................................................................ 1

ya
1.4 SCOPE: ................................................................................................................................. 1
1.5 DEFINITIONSAND ABBEREVIATIONS: ........................................................................ 1
1.6 OVERVIEW: ........................................................................................................................ 2

i
1.7 OVERALL DESCRIPTION: ................................................................................................ 2
un
1.8 PRODUCT PERSPECTIVE: ................................................................................................ 2
1.9 PRODUCT FUNCTIONS: .................................................................................................... 2
D
1.9.1) PROCESS DATA ......................................................................................................... 2
1.9.2) ADD USER ................................................................................................................... 3
ls

1.9.3) SEARCH RECORD ...................................................................................................... 3


1.10 CONSTRAINTS, ASSUMPTIONS AND DEPENDENCIES ........................................... 3
ia

1.11 SPECIFIC REQUIREMENTS ............................................................................................ 3


1.11.1 INTERFACE REQUIREMENTS ................................................................................ 3
or

1.11.2FUNCTIONAL REQUIREMENTS .............................................................................. 4


1.11.3 NON-FUNCTIONAL REQUIREMENTS ................................................................... 4
t

1.11.4 DESIGN CONSTRAINTS ........................................................................................... 4


Tu

1.12 DATA DLOW DIAGRAM AND DATA DICTIONARY ................................................. 5


2. ESTIMATION AND SCHEDULING ...................................................................................... 8

\ 2.1 FUNCTION POINTS ESTIMATION ................................................................................ 9


2.2 SIZE ESTIMATION ........................................................................................................... 11
2.3 COST ESTIMATION ......................................................................................................... 11

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

2.4 SCHEDULING ................................................................................................................... 11

3. ARCHITECTURAL DESIGN.................................................................................................. 13
4. RISK ANALYSIS ..................................................................................................................... 15
4.1 COMPRISING LOGIN CREDENTIALS .......................................................................... 15
4.2 REGISTRATION RISK...................................................................................................... 15

om
4.3 RISK OF STORAGE OF DATABASE SPACE ................................................................ 15
4.4 RISK OF IMPROPERLY DENIED ACCESS ................................................................... 16
4.5 RISK OF LITIGATION EXPOSURE ................................................................................ 16

.c
5. PROJECT CODE ...................................................................................................................... 20
5.1 ANDROID CODE .............................................................................................................. 20

ya
5.2 PHP CODE ........................................................................................................................ 34
5.3 SCREEN SHOTS OF THE SOFTWARE .......................................................................... 38

i
6. TESTING .................................................................................................................................. 41
un
6.1 PSEUDO CODE ................................................................................................................. 41
6.2 CYCLOMATIC COMPLEXITY:....................................................................................... 42
6.2.1 TO FIND CYCLOMATIC COMPLEXITY ................................................................ 43
D

6.2.2TO FIND INDEPENDENT PATH ............................................................................... 43


ls

6.3 TEST CASES FOR INDEPENDENT PATHS ................................................................... 44


7. USERS MANUAL.................................................................................................................... 45
ia

7.1 LOGIN PAGE ..................................................................................................................... 45


7.2 ADDING CRIMINAL ........................................................................................................ 46
or

8. CONCLUSION ......................................................................................................................... 47
9. REFERENCES ......................................................................................................................... 48
t
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

TABLE OF FIGURES

om
FIGURE 1: DATA FLOW DIAGRAM LEVEL-0 .........................................................................5
FIGURE 2: DATA FLOW DIAGRAM LEVEL-1 .........................................................................6
FIGURE 3: GANTT CHART .......................................................................................................12
FIGURE 4: ARCHITECTURAL DESIGN ..................................................................................13

.c
FIGURE 5: ADMIN LOGIN PAGE .............................................................................................38
FIGURE 6: USER LOGIN PAGE ................................................................................................39

ya
FIGURE 7: ADD CRIMINAL PAGE ...........................................................................................40
FIGURE 8: CYCLOMATIC COMPLEXITY ..............................................................................42
FIGURE 9: USER MANUAL ......................................................................................................46

i
un
LIST OF TABLES
D
ls

TABLE 1: PROJECT ESTIMATORS .................................................................................................... 8


ia

TABLE 2: RISK MANAGEMENT ...................................................................................................... 17


TABLE 3: RMMM1 ................................................................................................................................ 18
or

TABLE 4: RMMM2 ................................................................................................................................ 19


t
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


TutorialsDuniya.com

Download FREE Software Engineering Projects PDF for any


university student of BCA, MCA, B.Sc, B.Tech, M.Sc at
https://www.tutorialsduniya.com

 3 Level Authentication  Airline Reservation System


 Banking Management System  Bus Route Enquiry System
 Car Showroom Dealership  Cricket Management System
 Criminal Record Management  E-Boutique
 Exam & Result Management  Health Care
 Hospital Management System  Online Bookstore
 Online Complaint Portal  Online Event Booking
 Online MetroCard Recharge  Online Missing Person Info
 Online Shopping  Online Shopping System
 Our First Home  Railway Reservation System
 Reality Show Management  Tour & Travel Management
 Smart City Traveller  Weather ForeCasting

Many more FREE Software Engineering Projects are available at


https://www.tutorialsduniya.com

Please Share these SE projects with your Friends as well


Download FREE Software Engineering Projects from TutorialsDuniya.com

1. SPECIFIC REQUIREMENT SOFTWARE

om
1.1. INTRODUCTION

CRMS is an android application which is supported on all android versions above android

.c
KITKAT. This system will help to manage all the data of the criminals of a jail. There are either
only web-based applications or it is driven manually in most of the organizations. The application
will provide a multiuser platform.

ya
1.2. FEATURES

CRMS is an android application which is supported on all android versions above android

i
un
KITKAT. This application enables two types of authentication, one is user authentication through
which user can view data of criminals from the database and other is the admin authentication
through which admin can add new users and add as well as modify criminal data.
D
1.3. PURPOSE
ls

This document aims to give a brief description about the Criminal Record Management System
Project. With the help of this document the needs of the police officers to get data of criminals
anytime will be completed with very ease.
ia

1.4. SCOPE
or

This document covers the whole definition of the Criminal Record Management System (CRMS)
project. It basically includes data of criminals which will be of great help to police officers. By
taking security in consideration, the authentication is of great concern. Also, normal users can only
t

view the records of criminal. Only admin can make changes to database.
Tu

1.5. DEFINITIONSAND ABBEREVIATIONS

SRS: Software Requirements Specification


CRMS: Criminal Record Management System
CR: Criminal Record

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

1.6. OVERVIEW

This SRS is organized in a way that any user of the organization can easily understand and use the

om
CRMS. In other words, it constitutes a user guideline for CRMS. Basically, this document starts
with a brief explanation of the problem. Later on, it continues with a detailed solution we proposed.
Also block diagrams of our solution to visualize the solution and system better, specific and
functional requirements, interface requirements, constraints that may be confronted while
developing the software, relationship between user types each of which is a data object. This

.c
document ends with the planning and estimating the basic schedule of our process.

1.7. OVERALL DESCRIPTION

ya
The overall description of our project can be stated as creating and managing the database,
developing a friendly user interface to manipulate the database, provide an authentication
mechanism to safely accomplish tasks mentioned above.

i
un
1.8. PRODUCT PERSPECTIVE

With the CRMS we will provide them with capabilities and properties organized neatly. CRMS
D
which is an android application will be used by police officers. Admin will basically query and
edit the database via CRMS. They will also add, update and delete data of criminals.
ls

1.9. PRODUCT FUNCTIONS


ia

CRMS implements some major functions in order to accomplish required tasks. These functions
constitute a basis for the whole system. These functions can be stated as:
or

1.9.1. PROCESS DATA

These functions which can be examined in that process data major function are basically provides
t

admin to manage the database according to the desired task. These management tasks constitute
Tu

the major feature of the CRMS. With the help of these functions a admin can update some basic
data of criminals like address, Aadhar number etc. In addition to update data, a user can also search
the database in order to obtain the list of the criminal record by comparing images. Also, a user
may also see the specific information about a criminal which can be named as report.

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

1.9.2. ADD USER

Registration of a user will not be as straight forward. It will not be in the users’ hand to register

om
himself. Only admin of the organization can add a new user by verifying all the details of the user
to be registered.

1.9.3. SEARCH RECORD

.c
There are two types of search processes in this application. One is by entering id of the criminal
and other is by image, i.e. by providing an image as input.

ya
1.10. CONSTRAINTS, ASSUMPTIONS AND DEPENDENCIES

Regularity Policies: Each user must be a police officer, jailor, CBI officer.

i
Hardware Limitations: Since CRMS is an android application, the operating system must be
un
ANDROID with version greater than ANDROID KITKAT. However, the CRMS system and the
database will work on a server that needs to be always online.

1.11. SPECIFIC REQUIREMENTS


D

1.11.1. INTERFACE REQUIREMENTS


ls

All the user will be taken to a user authentication page. If the user is already registered he/she can
login directly through there or in case of admin there is an option below the login button to go to
ia

admin authentication page. From there admin can login. After login, admin will get three tabs as
follows:
or

Add data tab: With the help of this tab, admin will be able to add data of the criminal to database
such as name, contact number, address, Aadhar, etc.
t

Update data tab: his tab will enable the admin to update the record of the criminal in the database.
Tu

Delete data tab: This tab will enable the admin to delete records of a particular criminal from the
database. If the user sign in as normal user instead of admin, then he/she will get only one tab in
which there will be only the listing of all criminals present in the database.

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

1.11.2. FUNCTIONAL REQUIREMENTS

In this section, we will explain the major functions of CRMS along with the data flow. So, the

om
major functionality of the project such as authentication mechanism, personal data processing,
recruitment, report, and graphical user interface unit will explain step by step.

Authentication: Login User can login to the CRMS system with his/her username and password.
Logout User can logout from the CRMS system.

.c
Login failure if the user does not exist in the database or the user did not get authorized by the
CRMS admin yet.

ya
Authorization: User role check after logging in, the user role will be checked from the database
and the user interface will be created according to that role/roles.

Process data: Display User with defined roles can display the content of the database. Being more
specific, a normal user can only view criminal data. Admin can see not only criminal data but also

i
alter the database. A normal user can search a criminal record but entering the id of the criminal
un
or by uploading an image to the application.

1.11.3. NON-FUNCTIONAL REQUIREMENTS


D

Performance requirement: The number of online users of the CRMS can be estimates as 50 at
ls

most. There is no restriction on the number of the users to be added to the databases.

1.11.4. DESIGN CONSTRAINTS


ia
or

Hardware Requirements: The CRMS application will be storing 500 criminals’ data which will
roughly requires 100 MB of database storage space.

Software Requirements: Since our CRMS project is an android-based application, so we will


t

require mobile handsets for the deployment of the project. To store and fetch the data to and from
Tu

the database online i.e. MySQL database on the localhost server, the user also requires an active
internet connection for smooth working of the project. The CRMS will run on any mobile phone
with android 4.4 or higher. Application will run on 256MB or higher of RAM. It requires a space
of 2.5 MB to deploy onto the machine.

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

1.12. DATA FLOW DIAGRAM AND DATA DICTIONARY

om
.c
Match Records Update Records
Criminal

ya
User Record Admin
Get Info Management Provide Security

i
un
D

FIGURE 1: DATA FLOW DIAGRAM LEVEL - 0


ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

om
Criminal

.c
Record
Table

ya
SEARCH

Operations
Criminal

Database
Data

i
un
Criminal Search
Record Query

User Admin
D

LOGIN
ls

Authenticate
ia

User
or

USER
Create User TABLE
SIGN UP
t
Tu

FIGURE 1: DATA FLOW DIAGRAM LEVEL – 1

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

DATA DICTIONARY

om
DATA DICTIONARY

.c
Name Description

Criminal Query Photo/Criminal Id/Name.

ya
User Credentials User Unique Id + Password.

User Details First Name + Last Name (Optional) + Email Address


+ Address + Phone Number + Designation +

i
Aadhaar Number + Password.
un
Criminal Record Criminal Name + Photo + Criminal Id + Crime + Fir
Number + Address + Aadhaar Number/Voter
Id/Permanent Account Number + Exile Period.
D
Get Info Photo/Criminal Id/Name.

Admin Credentials Admin Id + Password + Aadhaar Number.


ls

Validate Password + User Unique Id.


ia

Add User First Name + Last Name + Email + Address + Phone


Number + Designation + Aadhaar Number +
Password.
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

2. ESTIMATION AND SCHEDULING

om
GRADE
VALUE
1 Does the system require reliable backup and recovery? 5
Are specialized data communications required to transfer
2 3
information to or from the application?

.c
3 Are there distributed processing functions? 4

ya
4 Is performance critical? 0
Will the system run in an existing, heavily utilized
5 5
operational environment?
6

i
Does the system require on-line data entry? 5
un
Does the on-line data entry require the input transaction to be
7 3
built over multiple screens or operations?
8 Are the Master files updated online? 5
D

9 Are the inputs, outputs, files, or inquiries complex? 2


10 Is the internal processing complex? 1
ls

11 Is the code designed to be reusable? 1


12 Are conversions and installations included in the design? 0
ia

Is the system designed for multiple installations in different


13 5
organizations?
or

Is the application design to facilitate change and for ease of


14 5
use by the user?
t
Tu

TABLE 1: PROJECT ESTIMATORS

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

2.1. Function Points Estimation


Considering the following assumptions
 3-4 INPUTS AS LOW

om
 4-7 INPUTS AS AVERAGE
 >7 INPUTS AS HIGH

Input

.c
FUNCTIONAL UNITS COMPLEXITY WEIGHING FACTOR

I1 AVERAGE 4

ya
I2 LOW 3

I3 AVERAGE 6
I4 LOW 3

i
un
I5 AVERAGE 6

TOTAL: 22
D

Output
ls

FUNCTIONAL UNITS COMPLEXITY WEIGHING FACTOR


ia

O1 AVERAGE 5
O2 AVERAGE 7
or

O3 AVERAGE 4

O4 AVERAGE 4
t
Tu

TOTAL: 20

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

Internal Logical Files


FUNCTIONAL UNITS COMPLEXITY WEIGHING FACTOR

ILF1 HIGH 7

om
ILF2 HIGH 15

ILF3 HIGH 15

.c
TOTAL: 37

ya
Enquires
FUNCTIONAL UNITS COMPLEXITY WEIGHING FACTOR

i
un
EQ1 HIGH 6

EQ2 HIGH 4

TOTAL: 10
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


TutorialsDuniya.com

Download FREE Software Engineering Projects PDF for any


university student of BCA, MCA, B.Sc, B.Tech, M.Sc at
https://www.tutorialsduniya.com

 3 Level Authentication  Airline Reservation System


 Banking Management System  Bus Route Enquiry System
 Car Showroom Dealership  Cricket Management System
 Criminal Record Management  E-Boutique
 Exam & Result Management  Health Care
 Hospital Management System  Online Bookstore
 Online Complaint Portal  Online Event Booking
 Online MetroCard Recharge  Online Missing Person Info
 Online Shopping  Online Shopping System
 Our First Home  Railway Reservation System
 Reality Show Management  Tour & Travel Management
 Smart City Traveller  Weather ForeCasting

Many more FREE Software Engineering Projects are available at


https://www.tutorialsduniya.com

Please Share these SE projects with your Friends as well


Download FREE Software Engineering Projects from TutorialsDuniya.com

Thus, The UNADJUSTED FUNCTIONAL POINTS (UFP) is:


UFP = Total I/P + Total O/P + Total ILF + Total EIF + Total Enquiries
= 20 + 20 + 37 + 0 + 10
= 89

om
Now, COMPLEXITY ADJUSTMENT FACTOR (CAF) is:
CAF = 0.65 + (0.01 *∑ fi)
= 0.65 + (0.01 *3*14)
= 1.07

.c
So, The FUNCTIONAL POINT (FP) is:
FP = UFP*CAF

ya
= 95.23

2.2. Size Estimation

i
Assuming that Average productivity for such a system is 6.5FP/pm i.e. 6.5 functional points per
un
person month, then the estimates are:

Size = Total Functional Points/Average Productivity


151.94/6.5
23.37 pm ≈ 24 pm
D

i.e. 24-person month


ls

2.2. Cost Estimation


Assuming that the cost is ₹5000/pm i.e. ₹ 5000 per person month Cost =
ia

Cost per person month * Effort


=₹ 5000*24 = ₹120,000
or

2.3. Scheduling
Scheduling is the culmination of a planning activity that is a primary component of Software
t

project management. When combined with estimation methods and risk analysis, scheduling
Tu

establishes a road map for the project manager. The characteristics of the project are used to adapt
an appropriate task set for the work to be done. A task network Depicts each engineering task, its
dependency on other tasks, and its projected duration.

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

om
.c
ya
FIGURE 3: GANTT CHART

i
un
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

3. ARCHITECTURAL DESIGN

om
CRMS

.c
SIGN UP LOGIN SEARCH ADMIN

ya
AUTHENTICATE
CREATE USER COMPARE ADD DATA
USER

i
un
FIND DATA UPDATE DATA
D
ls

DELETE DATA
ia

FIGURE 4: ARCHITECTURAL DESIGN


or

The architectural design of the software defines every module of the application in detail in a
hierarchical way. The CRMS application is mainly divided into four modules:
t
Tu

1. Sign Up: This module takes all the details of the user including the personal details.
a) Create Users: This module helps in the registration of the user into the database of
the organization.

2. Login: This module provides the most important functionality to the application, the
security feature of login module.

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

3. Search: This module helps the user to compare a criminal’s data to the whole database
and finding data of the required criminal.

om
4. Admin: This module will allow admin to manipulate database, i.e.; by adding data,
update some present data and deleting data from the database.

.c
i ya
un
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

4. RISK ANALYSIS
While deploying a project, several risks are always there with different probability of happening
and different consequences. Here we are giving to such risks for our project.

4.1. Compromising login credentials

om
The biggest risk to our project is on the entry gate of the project i.e. the login page. If the login
credentials of the application are in wrong hands, either stolen or given by some fraud user, then
all the security of the application is breached. There is also the possibility that a hacker will by-
pass the login page to do some harmful function with our project.

.c
If this happens, then the person will exploit the criminal records and application in many ways as
listed below:

ya
1. He/she will take the personal details of the criminals.
2. He/she will take the project details which will result in the huge financial and legal lose to
the organization.

i
un
3. It will delete the database of the company which have an adverse effect on the working of
the organization.

There is a high probability of this risk to the organization if the user or admin lacks in the ethics.
D

4.2. Registration Risk


ls

In this risk, the organization has the risk of adding the unethical user into the database. The
potential risk under this are:
ia

1. Stealing of data
or

2. Adding unsuitable or criminal minded users.


3. Database manipulation in wrong way.

The probability of this risk is less as all the work of registration is done under the supervision of
t
Tu

the ADMIN.

4.3. Risk of storage of database space

What if the organization faces the shortage of database space for storing the application database?
Then the CRMS application will not work properly. To resolve this, the organization has to
redesign the company database and some changes to the CRMS application which will add cost of

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

the application to the organization. The probability of this to the organization is less in short term
and has a little higher risk in the long term.

4.4. Risk of Improperly Denied Access

om
Nothing is more frustrating than being denied access to information you need to properly do your
job. Improperly denied access can prevent: addition of new criminal to database, updating in the
criminal record; deletion of criminal record, getting information of the criminals, searching for a
particular criminal. The probability of this risk is moderate to the organization.

.c
4.5. Risk of Litigation Exposure

ya
Criminal information is, by its very nature, confidential. It is the responsibility of ADMIN to
safeguard criminals’ records by controlling access to personnel information. A breakdown in this
area and the resulting misuse of this information can expose an organization to significant litigation
expenses and monetary damages.

i
un
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

RISK CATEGORY PROBABLITY IMPACT


(out of 100%) (1-5)
*

om
1.Size estimate is Product Size 40% 2
significantly low

2.Large no of users Product Size 30% 3

.c
3.Less Reuse Product Size 20% 2

4.Delivery Deadline Not Business 20% 4

ya
Met Impact

5.Cost Exceeds Cost Risk 50% 4

6.Custom Requirement

i
Product Size 45% 3
un
Change

7.Freezing Cost Business 35% 2


Impact
D

8.Lack of Planning Technology 10% 3


ls

9.Staff in Experience Staff Size 10% 2


ia

And
Experience
or

10. Organizational Risk Organization 20% 2


t
Tu

TABLE 2: RISK MANAGEMENT

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

RISK INFORMATION SHEET

om
RISK ID : DATE: PROBABILITY : IMPACT:
R01 15-02-2018 20% 2

.c
DESCRIPTION:
Organizational Risk (Inconsistent data into tables)

ya
REFINEMENT/CONTEXT:
1. Inconsistency of data will lead to the formation spurious tuples in the database.
2. Incorrect information will be passed to the users.
MITIGATION/MONITIORING:

i
un
1. Correct data must be inserted into the database by the admin so that no spurious tuples are
formed.
2. Users can get the accurate information about the criminal.
D
MANAGEMENT/CONTIGENCY PLAN/TRIGGER:

1. Risk estimation computed to be 5000. Allocate the amount within project contingency cost.
ls

2. Develop, revise and schedule assuming that high capable server is to be adopted : allocate staff
accordingly.
ia

TRIGGER: mitigation steps unproductive as of 25-02-2018


or

CURRENT STATUS :
05-03-2018: Mitigation steps initiated
t
Tu

ORIGINATOR: RAHUL RAY ASSIGNED: SRISHTI GUPTA

TABLE 3: RMMM 1

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

RISK INFORMATION SHEET

RISK ID : DATE: PROBABILITY : IMPACT:


R02 15-02-2018 30% 3

om
DESCRIPTION:
Large number of users

.c
REFINEMENT/CONTEXT:
1. My Sql Database will give late response on large number of users.
2. Database can also crash sometimes.

ya
MITIGATION/MONITIORING:
1. Number of active users must be handled by the admin.

i
2. User must not be blocked by accessing data.
un
MANAGEMENT/CONTIGENCY PLAN/TRIGGER:
D
1. Risk estimation computed to be 5000. Allocate the amount within project contingency cost.
2. Develop, revise and schedule assuming that high capable server is to be adopted: allocate staff
accordingly.
ls

TRIGGER: mitigation steps unproductive as of 25-02-2018


ia

CURRENT STATUS :
05-03-2018: Mitigation steps initiated
or

ORIGINATOR: RAHUL GUPTA ASSIGNED: TANYA GARG


t
Tu

TABLE 4: RMMM 2

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

5. PROJECT CODE
5.1. ANDROID CODE

om
5.1.1. ACTIVITIES

MAIN ACTIVITY

package com.example.rahul.crmsv2.Activities;

.c
import android.content.Context;
import android.content.DialogInterface;

ya
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.v7.app.AlertDialog;

i
import android.support.v7.app.AppCompatActivity;
un
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.util.Log;
import android.view.LayoutInflater;
D
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
ls

import com.example.rahul.crmsv2.Background.BackgroundLogin;
import com.example.rahul.crmsv2.R;
ia

public class MainActivity extends AppCompatActivity {


or

EditText editText_username,editText_password;
CardView cardView_login;
TextView textView_admin;
t

@Override
Tu

protected void onCreate(Bundle savedInstanceState) {


super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

editText_password=findViewById(R.id.etPass_main);
editText_username=findViewById(R.id.etUsername_main);
cardView_login=findViewById(R.id.card_login);
textView_admin=findViewById(R.id.tv_admin_main);

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

ConnectivityManager connectivityManager=(ConnectivityManager)
getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo=connectivityManager.getActiveNetworkInfo();
if (networkInfo!=null && networkInfo.isConnected())
{
textView_admin.setOnClickListener(new View.OnClickListener() {

om
@Override
public void onClick(View view) {
startActivity(new
Intent(getApplicationContext(),AdminAuthorizationActivity.class));
}
});

.c
cardView_login.setOnClickListener(new View.OnClickListener() {
@Override

ya
public void onClick(View view) {
String userName=editText_username.getText().toString();
String password=editText_password.getText().toString();

i
un
BackgroundLogin backgroundLogin=new BackgroundLogin(MainActivity.this);
backgroundLogin.execute(userName,password);
}
});
}
D

else
{
ls

alert("No Network Identified..");


}
ia

}
or

public void alert(String msg)


{
AlertDialog.Builder builder=new AlertDialog.Builder(MainActivity.this);
t

builder.setMessage(msg)
Tu

.setPositiveButton("OK", new DialogInterface.OnClickListener() {


@Override
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.cancel();
finish();
}
});
AlertDialog alertDialog=builder.create();
alertDialog.show();

Download FREE Software Engineering Projects from TutorialsDuniya.com


TutorialsDuniya.com

Download FREE Software Engineering Projects PDF for any


university student of BCA, MCA, B.Sc, B.Tech, M.Sc at
https://www.tutorialsduniya.com

 3 Level Authentication  Airline Reservation System


 Banking Management System  Bus Route Enquiry System
 Car Showroom Dealership  Cricket Management System
 Criminal Record Management  E-Boutique
 Exam & Result Management  Health Care
 Hospital Management System  Online Bookstore
 Online Complaint Portal  Online Event Booking
 Online MetroCard Recharge  Online Missing Person Info
 Online Shopping  Online Shopping System
 Our First Home  Railway Reservation System
 Reality Show Management  Tour & Travel Management
 Smart City Traveller  Weather ForeCasting

Many more FREE Software Engineering Projects are available at


https://www.tutorialsduniya.com

Please Share these SE projects with your Friends as well


Download FREE Software Engineering Projects from TutorialsDuniya.com

}
}
ADMIN ACTIVITY

package com.example.rahul.crmsv2.Activities;

import android.content.DialogInterface;

om
import android.content.SharedPreferences;
import android.graphics.PorterDuff;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;

.c
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.support.v7.widget.Toolbar;

ya
import android.view.MenuItem;
import android.view.View;
import android.view.animation.LinearInterpolator;
import android.widget.EditText;
import android.widget.TextView;

i
un
import com.example.rahul.crmsv2.Adapters.PagerViewAdapter;
import com.example.rahul.crmsv2.Background.BackgroundAddUser;
import com.example.rahul.crmsv2.R;
D

public class AdminActivity extends AppCompatActivity {


ls

TextView addData, updateData, delteData;


ViewPager viewPager;
PagerViewAdapter pagerViewAdapter;
ia

//SharedPreferences sharedPreferences;

@Override
or

protected void onCreate(Bundle savedInstanceState) {


super.onCreate(savedInstanceState);
setContentView(R.layout.activity_admin);
t

addData=findViewById(R.id.addData);
Tu

updateData=findViewById(R.id.update);
delteData=findViewById(R.id.delete);

viewPager=findViewById(R.id.mainPager);

pagerViewAdapter=new PagerViewAdapter(getSupportFragmentManager());
viewPager.setAdapter(pagerViewAdapter);

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

addData.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
viewPager.setCurrentItem(0);
}
});

om
updateData.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
viewPager.setCurrentItem(1);
}
});

.c
delteData.setOnClickListener(new View.OnClickListener() {
@Override

ya
public void onClick(View view) {
viewPager.setCurrentItem(2);
}
});

i
un
viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

}
D

@Override
ls

public void onPageSelected(int position) {

changeTabs(position);
ia

@Override
or

public void onPageScrollStateChanged(int state) {

}
t

});
Tu

private void changeTabs(int position) {


if (position==0)
{
addData.setTextColor(getResources().getColor(R.color.textTabBright));
addData.setTextSize(22);

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

updateData.setTextColor(getResources().getColor(R.color.textTabLight));
updateData.setTextSize(16);

delteData.setTextColor(getResources().getColor(R.color.textTabLight));
delteData.setTextSize(16);

om
if (position==1)
{
addData.setTextColor(getResources().getColor(R.color.textTabLight));
addData.setTextSize(16);

updateData.setTextColor(getResources().getColor(R.color.textTabBright));

.c
updateData.setTextSize(22);

delteData.setTextColor(getResources().getColor(R.color.textTabLight));

ya
delteData.setTextSize(16);
}
if (position==2)
{

i
addData.setTextColor(getResources().getColor(R.color.textTabLight));
un
addData.setTextSize(16);

updateData.setTextColor(getResources().getColor(R.color.textTabLight));
updateData.setTextSize(16);
D

delteData.setTextColor(getResources().getColor(R.color.textTabBright));
delteData.setTextSize(22);
ls

}
}
}
ia

5.1.2. BACKGROUND
or

BACKGROUND LOGIN

package com.example.rahul.crmsv2.Background;
t

import android.app.AlertDialog;
Tu

import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.util.Log;

import com.example.rahul.crmsv2.R;

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;

om
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

/**

.c
* Created by rahul on 22/3/18.
*/

ya
public class BackgroundLogin extends AsyncTask<String, Void, String> {

Context context;
ProgressDialog progressDialog;

i
un
public BackgroundLogin(Context context) {
this.context = context;
progressDialog=new ProgressDialog(context);
}
D

@Override
protected void onPreExecute() {
ls

// super.onPreExecute();
progressDialog.setProgressStyle(R.style.Theme_AppCompat_DayNight_DarkActionBar);
progressDialog.setCancelable(false);
ia

progressDialog.setIndeterminate(true);
progressDialog.setMessage("Logging in..");
progressDialog.show();
}
or

@Override
protected String doInBackground(String... voids) {
t
Tu

String loginUrl="http://192.168.43.92/CRMSV2/Login.php";

String userName=voids[0];
String password=voids[1];

Log.d("username",userName);
Log.d("password",password);

try {

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}

try {
URL url=new URL(loginUrl);

om
HttpURLConnection httpURLConnection=(HttpURLConnection)url.openConnection();
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setDoOutput(true);
OutputStream outputStream=httpURLConnection.getOutputStream();
BufferedWriter bufferedWriter=new BufferedWriter(new
OutputStreamWriter(outputStream,"UTF-8"));

.c
String loginData= URLEncoder.encode("userName","UTF-
8")+"="+URLEncoder.encode(userName,"UTF-8")+"&"+
URLEncoder.encode("password","UTF-

ya
8")+"="+URLEncoder.encode(password,"UTF-8");
bufferedWriter.write(loginData);
bufferedWriter.flush();
bufferedWriter.close();
outputStream.close();

i
un
InputStream inputStream=httpURLConnection.getInputStream();
BufferedReader bufferedReader=new BufferedReader(new
InputStreamReader(inputStream,"UTF-8"));
String response="";
D

String line="";
while((line=bufferedReader.readLine())!=null)
ls

{
response+=line;
}
ia

bufferedReader.close();
inputStream.close();
httpURLConnection.disconnect();
or

return response;
} catch (MalformedURLException e) {
e.printStackTrace();
t

} catch (IOException e) {
Tu

e.printStackTrace();
}

return null;
}

@Override
protected void onProgressUpdate(Void... values) {

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

super.onProgressUpdate(values);
}

@Override
protected void onPostExecute(String aVoid) {
// super.onPostExecute(aVoid);
progressDialog.dismiss();

om
AlertDialog.Builder builder=new AlertDialog.Builder(context);
builder.setMessage(aVoid)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {

.c
dialogInterface.cancel();
}
});

ya
AlertDialog alertDialog=builder.create();
alertDialog.show();
}
}

i
un
BACKGROUND ADD CRIMINAL

package com.example.rahul.crmsv2.Background;
D
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
ls

import android.content.DialogInterface;
import android.os.AsyncTask;
import android.widget.Toast;
ia

import com.example.rahul.crmsv2.R;
or

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
t

import java.io.InputStreamReader;
Tu

import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

/**

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

* Created by rahul on 11/4/18.


*/

public class AddCriminal extends AsyncTask<String, Void, String> {

Context context;
ProgressDialog progressDialog;

om
String addUserUrl;

public AddCriminal(Context context) {


this.context = context;
// progressDialog = new ProgressDialog(context);
}

.c
@Override
protected void onPreExecute() {

ya
// super.onPreExecute();
// progressDialog.setProgressStyle(R.style.Theme_AppCompat_DayNight_DarkActionBar);
// progressDialog.setCancelable(false);
// progressDialog.setIndeterminate(true);
//

i
progressDialog.setMessage("Signing Up..");
un
// progressDialog.show();
// new Handler().postDelayed(new Runnable() {
// @Override
// public void run() {
// progressDialog.dismiss();
D

// }
// },3000);
ls

@Override
ia

protected String doInBackground(String... voids) {

String addUserUrl="http://192.168.43.92/CRMSV2/addCriminal.php";
or

String name=voids[0];
String crime=voids[1];
String addr=voids[2];
t

String phone=voids[3];
Tu

String rel=voids[4];
String arrstDate=voids[5];
String aadhar=voids[6];
// String Aadhar=voids[7];

// try {
// Thread.sleep(3000);
// } catch (InterruptedException e) {
// e.printStackTrace();

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

// }

try {
URL url=new URL(addUserUrl);
HttpURLConnection httpURLConnection=(HttpURLConnection) url.openConnection();
httpURLConnection.setRequestMethod("POST");
httpURLConnection.setDoOutput(true);

om
OutputStream outputStream=httpURLConnection.getOutputStream();
BufferedWriter bufferedWriter=new BufferedWriter(new
OutputStreamWriter(outputStream,"UTF-8"));
String userData= URLEncoder.encode("name","UTF-
8")+"="+URLEncoder.encode(name,"UTF-8")+"&"+
URLEncoder.encode("crime","UTF-8")+"="+URLEncoder.encode(crime,"UTF-

.c
8")+"&"+
URLEncoder.encode("addr","UTF-8")+"="+URLEncoder.encode(addr,"UTF-
8")+"&"+

ya
URLEncoder.encode("phone","UTF-8")+"="+URLEncoder.encode(phone,"UTF-
8")+"&"+
URLEncoder.encode("rel","UTF-8")+"="+URLEncoder.encode(rel,"UTF-8")+"&"+
URLEncoder.encode("arrstDate","UTF-

i
8")+"="+URLEncoder.encode(arrstDate,"UTF-8")+"&"+
un
URLEncoder.encode("aadhar","UTF-8")+"="+URLEncoder.encode(aadhar,"UTF-
8");
bufferedWriter.write(userData);
bufferedWriter.flush();
bufferedWriter.close();
D

outputStream.close();
ls

InputStream inputStream=httpURLConnection.getInputStream();

BufferedReader bufferedReader=new BufferedReader(new


ia

InputStreamReader(inputStream,"UTF-8"));
String response="";
String line="";
while((line=bufferedReader.readLine())!=null)
or

{
response+=line;
}
t

bufferedReader.close();
Tu

inputStream.close();
httpURLConnection.disconnect();

return response;
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

return null;
}

@Override
protected void onProgressUpdate(Void... values) {

om
// super.onProgressUpdate(values);

.c
@Override
protected void onPostExecute(String aVoid) {

ya
super.onPostExecute(aVoid);
Toast.makeText(context,aVoid,Toast.LENGTH_LONG).show();
}

i
un
5.1.3. ADAPTERS

PAGER VIEW ADAPTER


D

package com.example.rahul.crmsv2.Adapters;
ls

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
ia

import com.example.rahul.crmsv2.Fragments.AddDataFragment;
import com.example.rahul.crmsv2.Fragments.DeleteDataFragment;
or

import com.example.rahul.crmsv2.Fragments.UpdateFragment;

/**
* Created by rahul on 3/4/18.
t

*/
Tu

public class PagerViewAdapter extends FragmentPagerAdapter {

public PagerViewAdapter(FragmentManager fm) {


super(fm);
}

@Override

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

public Fragment getItem(int position) {


switch (position)
{
case 0:
return new AddDataFragment();
case 1:
return new UpdateFragment();

om
case 2:
return new DeleteDataFragment();

default:
return null;
}

.c
}

@Override

ya
public int getCount() {
return 3;
}
}

i
un
5.1.4. FRAGMENTS

FRAGMENT ADD CRIMINAL


D
package com.example.rahul.crmsv2.Fragments;
ls

import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
ia

import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v4.app.Fragment;
or

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
t

import android.widget.EditText;
Tu

import android.widget.Toast;

import com.example.rahul.crmsv2.Background.AddCriminal;
import com.example.rahul.crmsv2.Background.UploadImage;
import com.example.rahul.crmsv2.R;

import java.io.IOException;

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

import de.hdodenhof.circleimageview.CircleImageView;

/**
* A simple {@link Fragment} subclass.
*/
public class AddDataFragment extends Fragment {

om
EditText name, crime, addr, phone, rel, arrstDate, aadhar;
Button submit;
CircleImageView image;
private static final int PICK_IMAGE = 1;
Uri imageUri;

.c
Bitmap bitmap;

public AddDataFragment() {

ya
// Required empty public constructor
}

@Override

i
un
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {

View view=inflater.inflate(R.layout.fragment_add_data,container,false);
name=view.findViewById(R.id.nameCriminal);
D

crime=view.findViewById(R.id.crimeCriminal);
addr=view.findViewById(R.id.addrCriminal);
ls

phone=view.findViewById(R.id.phoneCriminal);
rel=view.findViewById(R.id.relCriminal);
arrstDate=view.findViewById(R.id.arrstDateCriminal);
ia

aadhar=view.findViewById(R.id.aadharCriminal);
submit=view.findViewById(R.id.btnSubmit);
image=view.findViewById(R.id.imageCriminal);
or

image.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
t

Intent intent=new Intent();


Tu

intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent,"SelectPicture"),PICK_IMAGE);
}
});

submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

String Name=name.getText().toString();
String Crime=crime.getText().toString();
String Addr=addr.getText().toString();
String Phone=phone.getText().toString();
String Rel=rel.getText().toString();
String ArrstDate=arrstDate.getText().toString();
String Aadhar=aadhar.getText().toString();

om
if (Name.isEmpty() || Crime.isEmpty() ||Addr.isEmpty() ||Phone.isEmpty()
||Rel.isEmpty() ||ArrstDate.isEmpty() ||Aadhar.isEmpty())
{
Toast.makeText(getActivity().getApplicationContext(),"Every field must be
filled",Toast.LENGTH_LONG).show();

.c
}
else
{

ya
AddCriminal addCriminal=new
AddCriminal(getActivity().getApplicationContext());
addCriminal.execute(Name,Crime,Addr,Phone,Rel,ArrstDate,Aadhar);

name.setText("");

i
un
crime.setText("");
addr.setText("");
phone.setText("");
rel.setText("");
arrstDate.setText("");
D

aadhar.setText("");
}
ls

}
});
ia

return view;

}
or

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
t
Tu

if (requestCode==PICK_IMAGE)
{
imageUri=data.getData();
try {
bitmap=
MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(),imageUri);
image.setImageBitmap(bitmap);

UploadImage uploadImage=new UploadImage(getActivity().getApplicationContext());

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

uploadImage.execute(bitmap);

} catch (IOException e) {
e.printStackTrace();
}
}
}

om
}

.c
5.2. PHP CODE

ya
ADD CRIMINAL

<?php

include 'init.php';

i
un
$name=$_POST["name"];
$crime=$_POST["crime"];
$addr=$_POST["addr"];
$phone=$_POST["phone"];
D

$rel=$_POST["rel"];
$arrstDate=$_POST["arrstDate"];
ls

$aadhar=$_POST["aadhar"];

$sql="insert into criminal (cName, cCrime, cAddress, cPhone, cRelative, cArrestDate, Aadhar)
ia

values ('$name', '$crime', '$addr', '$phone', '$rel', '$arrstDate', '$aadhar');";


$res=mysqli_query($conn, $sql);
or

if ($res) {
echo "Data added successfully..";
}
else
t

{
Tu

echo "An error occured while adding the data..";


}

?>
ADD USER

<?php

Download FREE Software Engineering Projects from TutorialsDuniya.com


TutorialsDuniya.com

Download FREE Software Engineering Projects PDF for any


university student of BCA, MCA, B.Sc, B.Tech, M.Sc at
https://www.tutorialsduniya.com

 3 Level Authentication  Airline Reservation System


 Banking Management System  Bus Route Enquiry System
 Car Showroom Dealership  Cricket Management System
 Criminal Record Management  E-Boutique
 Exam & Result Management  Health Care
 Hospital Management System  Online Bookstore
 Online Complaint Portal  Online Event Booking
 Online MetroCard Recharge  Online Missing Person Info
 Online Shopping  Online Shopping System
 Our First Home  Railway Reservation System
 Reality Show Management  Tour & Travel Management
 Smart City Traveller  Weather ForeCasting

Many more FREE Software Engineering Projects are available at


https://www.tutorialsduniya.com

Please Share these SE projects with your Friends as well


Download FREE Software Engineering Projects from TutorialsDuniya.com

include 'init.php';

$name=$_POST["name"];
$userName=$_POST["userName"];
$Password=$_POST["Password"];
$DOB=$_POST["DOB"];

om
$phone=$_POST["phone"];
$email=$_POST["email"];
$Designation=$_POST["Designation"];
$Aadhar=$_POST["Aadhar"];

$sql="select uname from users where uAadhar='$Aadhar';";

.c
$result=mysqli_query($conn,$sql);
$resultCheck=mysqli_num_rows($result);

ya
if ($resultCheck>0) {
echo "User Already Exits..";
}
else

i
un
{
$sql="insert into users
(uname,uPassword,uDOB,uPhone,uDesingnation,uEmail,uAadhar,uUsername) values
('$name','$Password','$DOB','$phone','$Designation','$email','$Aadhar','$userName');";
$result=mysqli_query($conn,$sql);
D

$resultCheck=mysqli_num_rows($result);
echo "Registeration Success..";
ls

// echo "<pre>";
ia

// var_dump($GLOBALS);
// echo "</pre>";

?>
or

LOGIN
t

<?php
Tu

include 'init.php';

$userName=$_POST["userName"];
$password=$_POST["password"];

$sql="select * from users where uEmail='$userName' and uPassword='$password';";


$result=mysqli_query($conn,$sql);

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

$resultCheck=mysqli_num_rows($result);

// echo $userName . "<br>";


// echo $password . "<br>";
//echo $resultCheck . "<br>";
// s

om
if ($resultCheck==1) {
echo "Logged In Suucessful..";
}
else
{
if ($resultCheck==0) {

.c
echo "Authentication failed..";
}
else

ya
{
echo "Error in Authentication..";
}
}
?>

i
un
UPLOAD IMAGE
<?php

include 'init.php';
D

$image=$_POST["image"];
ls

//var_dump($image);
ia

$sql ="SELECT id FROM images ORDER BY id ASC";

$res = mysqli_query($conn,$sql);
or

$id = 0;

while($row = mysqli_fetch_array($res)){
t

$id = $row['id'];
Tu

$path = "uploads/$id.jpg";
$imageName="$id.jpg";

$actualpath = "http://localhost/CRMSV2/$path";

$sql = "INSERT INTO images (img_path) VALUES ('$path')";

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

if(mysqli_query($conn,$sql)){
file_put_contents($path,base64_decode($image));
// echo "$path<br>";
// echo "base64_decode($image)<br>";
echo "Successfully Uploaded";
}

om
else
{
echo "Error in uploading image";
}

?>

.c
i ya
un
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

5.3. SCREENSHOT OF THE SOFTWARE

om
.c
i ya
un
D
ls
ia
t or
Tu

FIGURE 5: ADMIN LOGIN PAGE

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

om
.c
i ya
un
D
ls
ia
t or
Tu

FIGURE 6: USER LOGIN PAGE

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

om
.c
i ya
un
D
ls
ia
t or
Tu

FIGURE 7: ADD CRIMINAL PAGE

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

6. TESTING

6.1. PSEUDO CODE

om
1. <?php

2. include 'init.php';

.c
3. $userName=$_POST["userName"];

4. $password=$_POST["password"];

ya
5. $sql="select * from users where uEmail='$userName' and uPassword='$password';";

6. $result=mysqli_query($conn,$sql);

i
7. $resultCheck=mysqli_num_rows($result);
un
8. if ($resultCheck==1) {

9. echo "Logged In Suucessful..";}


D

10. else
ls

11. {if ($resultCheck==0) {

12. echo "Authentication failed..";}


ia

13. else{
or

14. echo "Error in Authentication..";}

15. }
t

16.?>
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

6.2. CYCLOMATIC COMPLEXITY

om
2

.c
4

ya
5

i
un
6
D
7

R3
ls

8
10
ia

9
or

13
R1 11 R2
t
Tu

12
16 14

15

FIGURE 7: CYCLOMATIC COMPLEXITY

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

6.2.1. TO FIND CYCLOMATIC COMPLEXITY


Cyclomatic complexity is a software metric that provides a quantitative measure of the logical
complexity of a program. When used in the context of the basis path testing method, the value
computed for cyclomatic complexity defines the number of independent paths in the basis set
of a program and provides you with an upper bound for the number of tests that must be

om
conducted to ensure that all statements have been executed at least once.
(a) C = e - n +2, where e = number of edges, n = number of nodes
e = 17
n = 16

.c
C = 17 – 16 + 2
C=3

ya
(b) C = number of regions
C=3

(c) C=p+1 i
un
C = 2 + c (8th and 11th node)

6.2.2. TO FIND INDEPENDENT PATH


D

No. of independent paths=Cyclomatic Complexity


=3
 1 – 8, 9, 16
ls

 1 – 8, 10 – 16
 1 – 8, 10, 11, 13 – 16
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

6.3. TEST CASES FOR INDEPENDENT PATH

1. (1 - 8, 9, 16)
Input: Username, Password
If username and password correct (1-8), 9, 16

om
2. (1 - 8, 10 - 16)
Input: Username, password
If username or password incorrect (1-8), (10-16)

3. (1-8, 10, 11, 13-16)

.c
Input: username, password
If username or password incorrect on any server error (1-8), 10, 11, (13-16)

i ya
un
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

7. USER MANUAL
The CRMS software is an android application. Following are the requirement for the proper
deployment of the software:
1. An android mobile phone is required.

om
2. The mobile phones must run on android 4.4 or higher version.
3. It has at least 250 MB of RAM and a 20 Mb of the hard disk space.
4. It must have an active internet connection for the smooth functioning of the software.

7.1. Login Page

.c
In this section of the project, the user has to login with the credentials provided to him/her by

ya
the admin of the organization. Depending upon the user details, if the details are correct, a
different application layout is there for the admin and for all other users of the organization
which will provide different functionality depending on the permission granted to them.
For a new user, only the admin can create a new user using his password /details and then
i
provide the login details of the user to him/her so that any other outsider will not violate the
un
security of the application.
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

om
.c
i ya
un
D
ls
ia
or

FIGURE 9

Users can logout from his/her id at any time using the logout tab at the top right corner of the
t

home page.
Tu

7.2. Adding Criminal

For adding criminal section, the admin is required to login, as an outsider to the organization
cannot access the database manipulation section of the application.

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

8. CONCLUSION

We can conclude that criminal record management system can help police officers, jailors, CBI
officers in order to deal with criminal records. It can help jail organizations going smoothly

om
using technology. Organization can improve their management system from traditional
approach to a modern approach that using a technology base. In addition, organization can take
advantage in competition when their organization more advances.

.c
There are some benefits of implementing CRMS:

ya
1. The CRMS provides uniformity through templates and predetermined procedures for
uploading data and downloading reports. It also means that data retrieved and viewed
i
is in a format that is easily identifiable and user friendly.
un
2. Knowledge management is an important element in successful CRMS. CRMS become
a house of important information on the various aspects of a criminal history.
D

Lastly, we enjoy this subject that can make me understand about criminal record
management system. We can use this knowledge for our future.
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


Download FREE Software Engineering Projects from TutorialsDuniya.com

9. REFERENCES

1. The successful completion of this project has been achieved by the assistance from

om
various Resources which includes:

2. https://www.tutorialsduniya.com
3. Software Engineering: A Practitioner’s Approach by Roger

.c
4. S.Pressman An Integrated Approach to Software Engineering by

ya
P.Jalote

5. Software Engineering by K.K. Aggarwal and Yogesh Singh

6. https://www.tutorialsduniya.com i
un
D
ls
ia
t or
Tu

Download FREE Software Engineering Projects from TutorialsDuniya.com


TutorialsDuniya.com

Download FREE Software Engineering Projects PDF for any


university student of BCA, MCA, B.Sc, B.Tech, M.Sc at
https://www.tutorialsduniya.com

 3 Level Authentication  Airline Reservation System


 Banking Management System  Bus Route Enquiry System
 Car Showroom Dealership  Cricket Management System
 Criminal Record Management  E-Boutique
 Exam & Result Management  Health Care
 Hospital Management System  Online Bookstore
 Online Complaint Portal  Online Event Booking
 Online MetroCard Recharge  Online Missing Person Info
 Online Shopping  Online Shopping System
 Our First Home  Railway Reservation System
 Reality Show Management  Tour & Travel Management
 Smart City Traveller  Weather ForeCasting

Many more FREE Software Engineering Projects are available at


https://www.tutorialsduniya.com

Please Share these SE projects with your Friends as well

You might also like