Top Banner
TIMELINE CHAT PRESENTED BY: SOURAV AGARWAL SWATHI KIRAN S SOME ADITYA MANDAL VISVESVARAYA TECHNOLOGICAL UNIVERSITY "Jnana Sangama", Belgaum: 590 018 Project Seminar DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACHARYA INSTITUTE OF TECHNOLOGY Under the Guidance Mr. RAGHUNANDAN V Assistant Professor, Dept. of CSE
23

Timeline Chat Android Project

Aug 09, 2015

Download

Engineering

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Timeline Chat Android Project

TIMELINE CHATPRESENTED BY:

SOURAV AGARWAL SWATHI KIRAN SSOME ADITYA MANDAL

VISVESVARAYA TECHNOLOGICAL

UNIVERSITY"Jnana Sangama", Belgaum: 590 018

Project Seminar

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

ACHARYA INSTITUTE OF TECHNOLOGY

Under the GuidanceMr. RAGHUNANDAN V

Assistant Professor, Dept. of CSE

Page 2: Timeline Chat Android Project

Dept. of CSE,A.I.T 2013-2014

Project Description

This project is based on an android messaging application.

The idea is to make a messaging app in which you can see the other person in the chat without paying for the costly video calls.

You can see the other person in the chat through a series of pictures taken automatically, and forming a collage at the top of your chat thread

2

Page 3: Timeline Chat Android Project

Existing Work

Page 4: Timeline Chat Android Project

Project Relevance

Java IDE is a well proven industry standard and mobile

applications are the future of computing

This project will give us an exposure to the android

application development which can be selected as a

career

This is an innovative way of mobile communication

For people this can be used as an alternative to costly

video calls

Potential of huge commercial success in this app driven

world

Potential to become a startup companyDept. of CSE,A.I.T 2013-2014

Page 5: Timeline Chat Android Project

Software / Hardware Requirements

Software Requirements

Sl. No.

Name of software/ OS/ tools

Brief description/ Version number

1 Android Kit Ver. 4.0 or above

2 Eclipse 4.3.1

Hardware Requirements

Sl. No.

Name of Hardware Brief description/ specification

1 Bootable Android Device 1 gh cpu, 512mb ram, 100mb hard disk space

2 Server Linux Based

5

Dept. of CSE,A.I.T 2013-2014

Page 6: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal6

USER-INTERFACE

SENDER RECEIVERHome Page

Page 7: Timeline Chat Android Project

CONNECTING WITH IP ADDRESS

CONNECTING WITH IP ADDRESS

TRANSMITTING IMAGES

WIFI ROUTER

CAMERA

RECEIVING IMAGES

Sequence diagram

Page 8: Timeline Chat Android Project

Architecture

8

Dept. of CSE,A.I.T 2013-2014

Page 9: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project report9

➢ When the UI is Active, the camera manager takes a picture automatically from the front camera.

➢ The raw data is converted to jpeg format by the photo manager of the device.

➢ The image is then passed through the Socket Communicator to the receiver’s UI.

➢ The chat messages are also passed through the socket communicator to the sender’s and the receiver’s UI.

➢ The sender’s UI triggers the audio manger to select an audio file to be transmitted via the socket communicator.

➢ The receiver will receive the raw audio data, format it into playable format like mp3 and play it in the audio player directly.

Page 10: Timeline Chat Android Project

Dept. of CSE,A.I.T 2013-2014

10

System Design

Camera functionality Data Flow Diagram

Page 11: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal11

➢ When the sender’s UI becomes active then an image is clicked from the front camera atomically by the camera manager.

➢ The raw image is then converted to the jpeg format by the photo manager of the android device.

➢ The processed image is then transferred to the receiver’s UI via the socket communicator.

➢ The image is received at the photo manager of the receiver device.

➢ The image is then visible at the top of the receiver’s UI.

Page 12: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal12

The Chatting Functionality Data Flow Diagram

Page 13: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal13

➢ The chat messages are send through the socket communicator.

➢ The receiver receives the message and is displayed on the lower part of the screen.

Page 14: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal14

The Audio Message Data Flow Diagram

Page 15: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal15

➢ The sender triggers the audio manager of the device.

➢ It searches for the file to be transmitted to the other device.

➢ It sends the audio file through the socket communicator.

➢ The receiver receives the audio message.

➢ It triggers the audio manager.

➢ The audio manager convert the raw data into playable mp3 file format which is supported by the device.

➢ The audio is played in the audio player of the device.

Page 16: Timeline Chat Android Project

Pseudo code of the modules

16

Dept. of CSE,A.I.T 2013-2014

public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.playerview_demo); imageData = new ArrayList<byte[]>(); imageData.add(null); imageData.add(null); imageData.add(null); imageData.add(null);

}

Page 17: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal17

timer = new Timer(); myTimerTask = new MyTimerTask(); timer.schedule(myTimerTask, 5000, 20000); Database dat = new Database(getBaseContext()); SQLiteDatabase db = dat.getWritableDatabase(); Cursor c1 = db.rawQuery("select * from USER where IP='"+Totalipregistration.mip+"'", null);

Capturing the Image

Page 18: Timeline Chat Android Project

private Camera openFrontFacingCameraGingerbread() { int cameraCount = 0; Camera cam = null; Camera.CameraInfo cameraInfo = new Camera.CameraInfo(); cameraCount = Camera.getNumberOfCameras(); for ( int camIdx = 0; camIdx < cameraCount; camIdx++ ) { Camera.getCameraInfo( camIdx, cameraInfo ); if ( cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT ) { try { cam = Camera.open( camIdx ); } catch (RuntimeException e) { Log.e("camera", "Camera failed to open: " + e.getLocalizedMessage()); } } }

Front Camera Enabling

Page 19: Timeline Chat Android Project

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" >

<EditText android:id="@+id/editText1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="30dp" android:ems="10" android:hint="Enter ip" > <requestFocus />

XML for the UI Design

Page 20: Timeline Chat Android Project

Dept. of CSE, 2013-2014 project proposal20

Steps of communication

➢ Open a socket.

➢ Open an input stream and output stream to the socket.

➢ Read from and write to the stream according to the server's protocol.

➢ Close the streams.

➢ Close the socket

Page 21: Timeline Chat Android Project

Future

• Global implementation of the app , remove the IP based local chatting system, and make it internet based

• Buy Servers for saving the images , profile info , passwords and user-name

• Deploy it to the Google Play

Page 22: Timeline Chat Android Project

References

• www.google.com

• www.Wikipedia.com

• www.developer.android.com

Page 23: Timeline Chat Android Project

23

Thank you