Timeline Chat Android Project

23
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

Transcript of 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

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

Existing Work

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

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

Dept. of CSE, 2013-2014 project proposal6

USER-INTERFACE

SENDER RECEIVERHome Page

CONNECTING WITH IP ADDRESS

CONNECTING WITH IP ADDRESS

TRANSMITTING IMAGES

WIFI ROUTER

CAMERA

RECEIVING IMAGES

Sequence diagram

Architecture

8

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

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.

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

10

System Design

Camera functionality Data Flow Diagram

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.

Dept. of CSE, 2013-2014 project proposal12

The Chatting Functionality Data Flow Diagram

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.

Dept. of CSE, 2013-2014 project proposal14

The Audio Message Data Flow Diagram

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.

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);

}

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

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

<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

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

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

References

• www.google.com

• www.Wikipedia.com

• www.developer.android.com

23

Thank you