Boscochat- A free Wi-Fi ChatRoom in android final documentation
-
Upload
samaresh-debbarma -
Category
Education
-
view
1.652 -
download
5
description
Transcript of Boscochat- A free Wi-Fi ChatRoom in android final documentation
BOSCOCHAT
(A FREE WI-FI CHATROOM IN ANDROID)
( PROJECT REPORT)
Submitted to
ASSAM DON BOSCO UNIVERSITY
By
Samaresh Debbarma
Roll No: DC20011MCA0034
Dhrubajit Das
Roll No: DC2011MCA0003
in partial fulfilment for completion of Minor Project of
FIFTH SEMESTER
MASTER OF COMPUTER APPLICATION
DEPARTMENT OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY
DON BOSCO COLLEGE OF ENGINEERING AND TECHNOLOGY AZARA,GUWAHATI 781 017,
ASSAM, INDIA.
MCA(2011- 2014)
CERTIFICATE
This is to certify that the Project Report entitled “BOSCO CHAT” submitted by Samaresh
Debbarma (Roll .No : DC2011MCA0034) and Dhrubajit (Roll.No.-DC2011MCA0003) to
the Assam Don Bosco University, Guwahati, Assam, in partial fulfilment of the requirement for
Minor project of 5th semester of Master of Computer Applications. It is a bonafide record of the
project work carried out by them under my supervision during the year 2013.
External Guide:
Internal Guide:
CERTIFICATE
This is to certify that the Project Report entitled “BOSCO CHAT” submitted by Samaresh
Debbarma(Roll.No.-DC2011MCA0034) and Dhrubajit Das(Roll.No.-DC2011MCA0003)
to the Assam Don Bosco University, Guwahati, Assam, in partial fulfilment of the requirement
for the Minor project of 5th semester of Computer Applications. It is a bonafide record of the
project work carried out by them during the year 2013.
Head of the Department Head of the Institution
EXAMINATION CERTIFICATE
This is to certify that Samaresh Debbarma bearing Roll. No: DC2011MCA0034 and
Dhrubajit Das bearing Roll.No.-DC2011MCA0003 of the DEPARTMENT OF COMPUTER
SCIENCE AND INFORMATION TECHNOLOGY has carried out the Project Work in a
manner satisfactory to warrant its acceptance and also defended it successfully.
I wish them all the success in their future endeavours.
Examiners:
01. External Examiner:
02. Internal Examiner:
03. Internal Examiner:
DECLARATION
I hereby declare that the Dissertation work entitled “BOSCO CHAT” submitted to the Assam
Don Bosco University, Guwahati, Assam, in partial fulfilment of the requirement for Minor
project of 5th semester of Master of Computer Applications. It is an original work done by me
under the guidance of Mr. PRANAB DAS and has not been submitted for the award of any
degree.
(Signature of the student) (Signature of student)
Samaresh Debbarma DHRUBAJIT DAS
Roll Number :DC2011MCA0034 Roll Number:DC2011MCA0003
DEPARTMENT NAME:
DEPARTMENT OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY.
ACKNOWLEDGEMENT
This acknowledgement transcends the reality of formality when we would express deep gratitude
and respect to all those people who helped supported, guided and inspired us throughout the
completion of this project.
We would like to express my deep gratitude and whole hearted thanks to our Guide Mr Pranab
Das (Assistant Professor, Department of Computer Science and IT, Don Bosco College of
Engineering and Technology) for his valuable guidance, precious suggestions and
encouragement in completing the project successfully.
We express my sincere thanks to Mrs. Bobby Sharma and Mr. Rupam Sharma (Project
Coordinators, Department of Computer Science and IT, Don Bosco College of Engineering
and Technology) for giving us an opportunity to work with them and providing valuable
guidance.
We wish to convey my sincere thanks to Dr.Y.Jayanta Singh (H.O.D, Department of
Computer Science and IT, Don Bosco College of Engineering and Technology) for his
support throughout the project.
We wish to convey my sincere thanks to Prof. Monoranjan Kalita (Principal, Don Bosco
College of Engineering and Technology) for his continuous support.
We are also grateful to all the administrative staff and the technical staff of Computing and
Computer Science and Information Technology Department, people who provided us the useful
and necessary information needed for this project, friends who tested our applications in their
mobile devices and gave their suggestions and valuable comments. Lastly, we thank all our
family, friends and well wishers.
i
ABSTRACT
KEYWORDS: Wi-Fi, Chat Room, Peer to Peer, Broadcast, User Datagram Protocol (UDP).
The proliferation of wireless and mobile devices such as personal digital assistants and mobile
phones has created a large demand for mobile software applications such as Chatting application
software. In addition, the realization and widespread usage of peer-to-peer (P2P) networking
have drastically increased the number of applications utilizing these technologies. The
convergence of mobile and P2P networking have generated increasing interest in the mobile
peer-to-peer (MP2P) community. In this project, we describe the design and development of
BoscoChat based on Wi-Fi network architecture. This application allows users to discover,
communicate with one another. We present two different facets of designing the BoscoChat:
network infrastructure design, and user-interface design. The software has been fully
implemented and tested on a variety of mobile devices for use in a campus setting. By studying
the design and implementation of BoscoChat, we hope to benefit the entire mobile application
development community by providing common models and insights into developing MP2P
software.
ii
CONTENTS
Title Page
ACKNOWLEDGEMENTS ............................................................................................ i
ABSTRACT ...................................................................................................................... ii
LIST OF FIGURES ......................................................................................................... iii
ABBREVIATIONS .......................................................................................................... iv
INTRODUCTION.............................................................................................................1
CHAPTER 1 SCOPE OF THE PROJECT
1.1 Objective of the project ........................................................................................... 2
1.2 Motivation ................................................................................................................ 2
1.3 Hypothesis ............................................................................................................... 2
1.3 Resource Utilized .................................................................................................... 2
CHAPTER 2 PROPOSED METHODOLOGY
2.1 Water fall model of the project ............................................................................... 3
CHAPTER 3 FEASIBILITY STUDY
3.1 Operational feasibility study ................................................................................... 4
3.2 Technical feasibility study ...................................................................................... 4
3.3 Economic feasibility study .................................................................................... 4
CHAPTER 4 REQUIREMENT ANALYSIS
4.1 Technical hardware details ..................................................................................... 5
4.2 Technical software details ...................................................................................... 5
CHAPTER 5 UNIFIED MODELING LANGUAGE DIAGRAMS
5.1 Use Case Diagram ................................................................................................... 6
5.2 Activity Diagram ..................................................................................................... 7
5.3 Work Break Down Structure Diagram................................................................... 8
CHAPTER 6 IMPLEMENTATION
6.1 Start Screen ............................................................................................................... 9
6.2 Sign in Activity ......................................................................................................... 10
6.3 Create chat room ..................................................................................................... 10
6.4 Send and receive message ........................................................................................ 11
6.5 Help ........................................................................................................................ 12
CHAPTER 7 TESTING
7.1 Unit Testing .............................................................................................................. 9
7.2 Module Testing ......................................................................................................... 10
CONCLUSION.................................................................................................................13
REFERENCE....................................................................................................................14
LIST OF FIGURES
Figure Title Page
1.1 Proposed methodology ................................................................................. 3
1.2 Use case ......................................................................................................... 6
1.3 Activity Diagram ........................................................................................... 7
1.4 Work Break Down Structure (WBS) .......................................................... 8
1.2 Start Screen .................................................................................................... 9
1.3 Sign in Activity .............................................................................................. 10
1.2 Create chat room .......................................................................................... 10
1.3 Send and receive message ............................................................................. 11
1.2 Help ............................................................................................................... 12
iii
ABBREVIATIONS
Wi-Fi Wireless Fidelity
UDP User Datagram Protocol
AOSP Android Open Source Project.
APK Android executable file
iv
INTRODUCTION
‘BOSCO’ is a name extracted from the full name Don Bosco, The Founder of selesian
congregation and ‘CHAT’ which means chatting .With the availability of mobile
computing devices, mobile users have a natural tendency to share information between
them. Often mobile users want to have a meeting, even though it is not planned in
advance and there is no Internet connection available. For instance, there may be
situations that employees find themselves together in a meeting room, or friends or
business acquaintances may encounter each other in an airport terminal, or some scholars
and researchers may meet in a hotel ballroom for a conference or workshop. In those
situations, requiring each user to connect to a wide area network to communicate with
each other may not be convenient or practical because of the lack of Internet connectivity
or because of the time or cost required for such a connection, So in those situations the
“WiFi Chat Room” would help the employees to send and receive the information whit
the employees want to share. This application will be based on “Android Operating
system”. The chat messages sent are of two types:1. Public Chat Messages 2. Private chat
Messages Public messages are delivered to all other chat clients nearby, while private
messages are directed to a specific recipient. As in most chat applications, there is no
history and clients do not expect to receive messages sent earlier or when disconnected.
Disconnection can occur at any time while clients are exchanging messages.
1
CHAPTER 1
SCOPE OF THE PROJECT
1.1 OBJECTIVE OF THE PROJECT
The main objective of this project is to connect different people that are in the range of
same Wi-Fi access point. This will be completely free and no external source of internet
will be needed. The chat will be public, means messages will be broadcasted to every
user that is connected. This application will be developed in the Java programming
language using the android software development kit(SDK).The development platform or
integrated development environment(IDE) is eclipse using the android development
tools(ADT) Plug-in. We will develop an application where user does not need any web
browser to chat with other user. It has its own user interface. The user can connect to any
available Access Point for chat with another user connected with same access point.
Tethering and portable hotspot utility available on android can also be used for creating
an access point. User Datagram Protocol (UDP) is used for sending the packets across the
network.
1.2 MOTIVATION
The main motivation of this project is to explore the concepts of mobile application
development in android. Chatting applications are the most liked and downloaded
applications from android market. A chat application that is simple and easy to be used in
a mobile handset can become a hit with millions of mobile users. The motive of this
application is to learn and experience developing a chatting application in android
targeting a small set of users. The knowledge obtained in this process can be applied later
in the career to develop any similar kind of application focusing large group of users.
1.3 HYPOTHESIS
For developing any application, development tools are the most important. For small
Independent Software Developers, (ISVs) market size is the most important.
1.4 RESOURCE UTILIZATION
The main resources used during this project were our academic reader, and Android
AAKASH tablet .
2
CHAPTER 2
PROPOSED METHODOLOGY
2.1 Water Fall model of the proposed methodology
Figure: 2.1 Waterfall model of the proposed methodology
3
ANALYSIS PHASE
1)Analysis different application already
available in market.
2)Study to make new application for user
DESIGN PHASE
1)Make Data flow Diagram.
2)Make Use Case Diagram.
4)Make Activity diagram.
CODING PHASE
TESTING PHASE
1) Program Testing
2)Module Testing
3)Testing the responsiveness of the system.
CHAPTER 3
FEASIBILITY STUDY
3.1 OPERATIONAL FEASIBILITY STUDY
The proposed system is operationally feasible as the final output of the project can be used by
Android user and it will be easy and user friendly for use.
3.2 TECHNICAL FEASIBILITY STUDY
If we see from technical perspective the project is feasible, as the software required for
developing the project is a freeware, easy to use and it doesn’t demand any non-existing
technology.
3.3 ECONOMIC FEASIBILITY STUDY
Economically, this project doesn’t raise any issues, as the project itself is planned or aimed at
user needs. The resources required for this project are bare minimum. It doesn’t demand any
additional resources. The user will be able to download the application from proper link and after
that they can easily use it.
4
CHAPTER 4
REQUIREMENT ANALYSIS
The project involved analyzing the design of few applications so as to make the application
more user friendly. To do so, it was really important to keep the navigations from one screen to
the other well ordered and at the same time reducing the amount of typing the user needs to do.
In order to make the application more accessible, the android version had to be chosen so that it
is compatible with most of the Android devices.
4.1 TECHNICAL HARDWARE DETAILS
The development of the proposed system requires Desktop or laptop and android handset
4.2 TECHNICAL SOFTWARE DETAAILS
Desktop or laptop Operating System: Windows XP (32-bit), Windows Vista (32- or 64-bit),
Windows 7 (32- or 64-bit) or Windows 8 (32-bit or 64-bit) ,Eclipse IDE: Eclipse 3.6.2 (Helios)
or greater Eclipse JDT plug-in (included in most Eclipse IDE packages) JDK 7 Android
Development Tools plug-in (recommended)
5
CHAPTER 5
UNIFIED MODELING LANGUAGE DIAGRAMS
5.1 USE CASE DIAGRAM
host
user
Figure-2.1use case diagram
Search for
accesspoint
Search for
chat room
Request join
chat room
Display list of
all chat room
Received id
View chat
history
Display list of
available user
Select to chat
with single and
multiple user
Initiate chat
process
Send
message and
emotion
Receive
message or
emotion
Leave chat
room
Create
chat room
Grant chat
room
Send id
6
5.2 ACTIVITY DIAGRAM Host user
No
Yes
Yes
single user
multiple user
No
Search for access point Search for access point
Display list of available user
Search for chat room
Display of all chat room
Request to
join chat
room
Grant request
Send id Receive id
Start
chat
Create chat room
Select to chat
single or
multiple user
Initiate room Initiate chat process
Send message / emotion Send message / emotion
Receive message /emotion Receive message /emotion
View chat history
Leave chat room
Figure:-5.2Activity diagram
7
5.3 WorkPlan (WBS)
Prepare the physical data model
Prepare the data dictionary
CHAPTER 5
8
WIFI CHAT IN ANDROID
(90 days)
1) Requirement
Aalysis
(7 days)
1.1 Requirement Analysis
(5 days)
1.2 Collecting the
required item
(2 days)
2. Design
(21 days)
2.1 Prepare the
primary design
(7 days)
2.2 Prepare
the detailed
design
(7 days)
2.3 Prepare the
document design
(7 days)
4. Testing
(32 days)
4.1 Unit testing
(8days)
4.2 Module testing
(8 days)
4.3 Sub System
testing (8 days
4.4 Responsive
testing (8 days)
3. Coding
(30 days)
3.1 Phase 1
(15 days)
3.2 Phase 2
(15 days)
Figure-2.2 work break down structure
CHAPTER 6
IMPLEMENTATION
6.1 START SCREEN
welcomes the user to the application.
9
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/
android"
android:id="@id/RltFirst"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/boscochat"
android:focusable="true"
android:focusableInTouchMode="true"
android:orientation="vertical" />
6.2 SIGN ACTIVITY
The user log in the application
5.3 CREATE CHAT ROOM
10
5.4 SEND AND RECEIVE MESSAGE
11
5.5 HELP
CHAPTER 7
TESTING
7.1 UNIT TESTING
Unit testing, also known as component testing refers to tests that verify the functionality of
specific section of code, usually at the function level. In an object-oriented environment, this is
usually at the class level, and the minimal unit tests include the constructors and destructors.
Module Tests
7.2 MODULE TESTING
Module tests are typically dynamic white-box tests. This requires the execution of the software
or parts of the software. The software can be executed in the target system, an emulator,
simulator or any other suitable test environment. Within the range of dynamic tests the state of
the art distinguishes between structural and functional tests. The structural dynamic tests are
also called "module tests" or "unit tests". A module test is performed with the knowledge of the
module internals in mind. I.e. especially the branches and paths in functions and modules.
13
12
CONCLUSION
BOSCO CHAT (A Wi-Fi Chat Room in Android) is a new approach for local communications
in mobile world. Wi-Fi proximity is a main idea behind Wi-Fi chat. If you and your potential pal
can see at this moment the same Wi-Fi access point (Wi-Fi network) than it is very probably that
you can see each other. In other words, it is very likely that you are close to each other. Close in
the geographical sense, of course. So, BOSCO CHAT lets you create discussions (forums) as
well as live web chats associated with Wi-Fi access points. It is yet another way to create hyper-
local group messaging.
13
REFERENCES
[1] http://developer.android.com/guide/topics/fundamentals.html/: OL. Google
Android Developers, AndroidDevelop Guide.
[2] M. Fengsheng Yang, Android Application Development Revelation, China
Machine Press, 2010.
[3] Mark L. Murphy, Beginning Android, Springer Verlag New York, Inc., 2010.
[4] http://developer.android.com/guide/components/index.html/: Android Components.
[5] http://vidhatha.com/android-projects/: Project Overview
[6] http://developer.android.com/reference/java/net/DatagramPacket.html: Datagram
Packet Class
[7] http://developer.android.com/reference/java/net/InetAddress.html: InetAddress Class
[8] http://developer.android.com/reference/android/app/NotificationManager.html:
NotificationManager Class
[9] http://developer.android.com/reference/java/net/DatagramSocket.html: Datagram
Socket Class
[10] http://developer.android.com/reference/android/net/wifi/WifiManager.html: Wi-Fi
Manager Class
[11] http://developer.android.com/reference/android/net/wifi/WifiInfo.html: Wi-Fi
Info Class
[12] D. Muthukumaran et al., Measuring Integrity on Mobile Phone Systems, Proc.
13th ACM Symp. Access Control Models and Technologies, ACM Press, 2008,
pp. 155–164.
14