Top Banner
14
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: How to create a chat application on Android platform?
Page 2: How to create a chat application on Android platform?

Android Chat Application

Vineeth [email protected]/1991twitter.com/vineeth4uuin.linkedin.com/in/vineethc

Page 3: How to create a chat application on Android platform?

What is Android•It is an open source platform and OS for

mobile device

•Based On Linux Kernel

•Android has its own virtual machine.ie DVM(Dalvik Virtual Machine), which is used for executing the android application.

•Allows writing managed code in the Java language

Page 4: How to create a chat application on Android platform?

Components1. Android App is built using components

• Activity- User visible window• Service- Background service(no UI)• Broadcast Receiver- Receiving broadcasts from • apps and system service.• Content provider – Provides content to apps

2. Components are separate building blocks that can be accessed by other apps.3. Components are usually declared in application manifest.

Page 5: How to create a chat application on Android platform?

Architecture

Page 6: How to create a chat application on Android platform?

Chat Application Workflow

Page 7: How to create a chat application on Android platform?

STEPS1. Register with Google cloud messaging(GCM)

from GOOGLE API console and get Sender Id and Api key for GCM. For more info https://console.developers.google.com/?utm_referrer=http://developer.android.com/google/gcm/gs.html

2. Set Emulator for Google cloud messaging helper library.

3. Create server side code to save Google Cloud Messaging registration id in our database and send push notification to device.

Page 8: How to create a chat application on Android platform?

STEPS4. Check device is registered for web server

or not. If not registered send device imei and gcm regid into database server and redirected to show all registered devices screen.

5. Select user to send message and after selection show send message screen.

6. When user sending message then send sender IMEI , sendto IMEI and message to web server , webserver get user device data (regID) from database and call gcm to send message to regID.

Page 9: How to create a chat application on Android platform?

STEPS7. When GCM Client on device get new message store it in SQLite database on phone and show new notification message in notification bar.

8. After clicking notification show message screen will open and show all got messages and on show message screen user can also send message to other devices.

Page 10: How to create a chat application on Android platform?

Want to learn more or need a resource who knows how to create an android chat application?

Drop an email to [email protected]

Page 11: How to create a chat application on Android platform?

Want to learn more about programming or Looking to become a good programmer?

Are you wasting time on searching so many contents online?

Do you want to learn things quickly?

Tired of spending huge amount of money to become a Software professional?

Do an online course @ baabtra.com

We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.

Page 12: How to create a chat application on Android platform?

Follow us @ twitter.com/baabtra

Like us @ facebook.com/baabtra

Subscribe to us @ youtube.com/baabtra

Become a follower @ slideshare.net/BaabtraMentoringPartner

Connect to us @ in.linkedin.com/in/baabtra

Give a feedback @ massbaab.com/baabtra

Thanks in advance

www.baabtra.com | www.massbaab.com |www.baabte.com

Page 13: How to create a chat application on Android platform?

Need android training? Contact: Muhammad Haris [email protected]/in/harisnp/ Or visit baabtra.com

US UK UAE

7002 Hana Road, Edison NJ 08817, United States of America.

90 High Street,

Cherry Hinton,

Cambridge, CB1 9HZ,

United Kingdom.

Suite No: 51, Oasis Center,

Sheikh Zayed Road, Dubai,

UAE +971 4 3218852

+971 557546352

Page 14: How to create a chat application on Android platform?

Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550

Cafit Square,Hilite Business Park,Near Pantheerankavu,Kozhikode

Start up VillageEranakulam,Kerala, India.

Email: [email protected]

Contact Us