How to create an android chat application

I am trying to create a simple android chat application for a school project, however as i am new to android programming, i am not sure where to start with and are there any guides to explain how could i do it? I get the idea of when someone sends a message the message will be stored in a database, then it will be send to the other person, so that the other person can receive it. However, as i am new to android programming i am not sure how would i be able to do it.

If someone could give an example of guide of what I should do, I would really appreciate it.

Thank you for your time.

-------------Problems Reply------------

if you want to create server based chat:

  1. create your simple client app (android)
  2. Create server on any machine. you can write simple java application that implements Server Socket and waits for clients. just open and any IDE, write and run. and wait for clients to connect.
  3. in you client(android) start socket connection to server
  4. after connection send your meesage to server.
  5. in your server keep list of all connected clients (probably you will keep list of client sockets)
  6. send all incoming data to clients, regardless of where it come from.

This implementation does not check for any session. it works like public chat. you will see your message will echo back to you and others will see your messages too. like group message.

I tried to be simple for you. but if you are too new to android and java you are going to need to learn

  1. create simple android app
  2. create simple User Interface
  3. set proper permission for network access (on application manifest file)
  4. simple java client - server communication.

links : for socket programming:

for simple android app:

example chat app: (not tested but seems to have same idea. example is zipped file. just search "Chat" on the page.)

NOT: i am not so sure about other app examples on internet is simple as you need. so i did not put too many of them here. But if you understand basic technologies. you can figure it out i believe.

if android implementation becomes hard, you can simple implement your clients in simple java app and send statically predefined text messages to test if server can delivered to other clients. this will be easy test.

Firstly this is not the way to question. Follow

You will need a server side and a android client side for this. Since you are a beginner you can use SocketIO with android which has a tutorial there. Their source code

Category:android Views:43 Time:2018-12-22
Tags: android

Related post

  • How to create P2P Android Remote application? 2012-03-09

    I would like to develop a Remote application for Peer-to-peer Android Device using TCP/IP connection. once one of the device successfully remote to the other, he/she will be able to see what the other device is doing (example : doing drawing with an

  • How to create an Live chat in JSP 2011-03-25

    How to create a Live CHat application in JSP. Basically i am creating a management system whicch i want it to allow user to live chatting with admin. Any clue or suggestion? --------------Solutions------------- You can use libraries like J-Live Chat

  • How to create Animation like Path Application in Android 2012-03-29

    How to create Animations like Path Application in Android. Is there any demos or tutorial for the same. Animation like this url :- -----------

  • What is thread?How to create thread in win32 application? 2009-12-24

    What is thread? How to create thread in win32 application? --------------Solutions------------- Thread is a light weight process. A thread can be loosely defined as a separate stream of execution that takes place simultaneously with and independently

  • How to create interface for C++ application with XAML? 2010-02-26

    How to create interface for C++ application with XAML? (I SEARCH FOR SOME APP LIKE EXPRESSION BLEND (OR even beter a plug in for it)) --------------Solutions------------- Visual Studio Pro 2008 does support C++ .Net and XAML interface designer so it

  • How to create in Android Java a random number between min and max excluding some numbers that fall between min and max.? 2011-10-11

    How to create in Android Java a random number between min and max excluding some numbers that fall between min and max.? I have three vars, each is a random number between 1-100. I was able to do the random number using the math.rand() but I am tryin

  • How to force my Android new application installation? 2012-03-06

    How to force my Android new application installation when ever user comes to application? Basically I am releasing new set of features. I would like to force user to update user to this new version? --------------Solutions------------- You cannot for

  • How to display list of users in android chat application 2011-09-13

    Friends, i done a chat application project in android based on and referring some books. as of now, i want to add one more feature like displaying list of users for the logged in user . so, please if anybody already done this type of application then

  • Android Chat application smiley 2012-02-09

    I am developing a chat application. For smileys I have used image buttons. But the problem is that I don't know how to insert the smileys to the text control after the chat messages, similar to this: How to do it through code? Please guide me. ------

  • How to create a smart chat-bot? 2009-11-17

    I know that it's still an open problem so I don't expect to see complete answers here. I just want to find some approaches to solve the next problem: I have a model (assume that is's bot's memory), and different words are associated with different ob

  • How to create an android plugin with views, activities and objects 2011-04-21

    So... I'm trying to create a plugin for one of my apps. This plugin would require several views, images, an activity and a parser for CharSequences... Ideally, this plugin would be downloadable from the Android Market. I understand how to create a li

  • How To Create An Android App To Cycle Through Backgrgound Images On Home Screen? 2011-06-27

    I need a little bit of help and I'm hoping that someone can point me in the right direction. I want to do something that I thought would be simple. Keep in mind that I'm new to Android development so this answer may seem clear and apparent to some. I

  • how to create view for chatting like facebook or whatsapp 2011-07-19

    I am creating chat application and in that I don't know how to create a view like facebook or gtalk chat applicatons. Like sender name and message on left and receiver name and message on right side of the view. If any sample code please let me know.

  • How to create advanced android UI? 2012-01-21

    I'm starting to develop applications for android, but I can not draw advanced interfaces like this: Could someone direct me to a tutorial, or show me examples of how to do the following layouts?

  • Windows form application: How to create "Speech to text" application in c#? 2012-02-06

    I am creating the windows form application[Speech to text] but not getting any correct code or API to create this application so suggest me how to create such applications. --------------Solutions------------- Check this Acapela Group it is not free

  • How to create this Android View/Layout 2012-02-23

    I'm working on my first Android application and I have a pretty good idea of what I want my application to look like, I'm just not sure how to create the view. I have a Listview with several items, I then want users to click on an item then get a det

  • Making Android chat application from scratch 2012-03-15

    I need to make chat application for android. I thought of using PHP script to implement the chat application. Basic idea is to send message form android client to PHP script and making use of PHP script send the messages to the MySQL database. These

  • How to create a document assembly application? 2009-09-11

    I need to create a document assembly application and I do not know where to start from. We have a couple of Word templates that are changed based on diferent scenarios and a faster way will be to build an application that will generate a Word documen

  • how to create binary of iphone application 2009-09-30

    On reading the iTunesConnect_DeveloperGuide.pdf, i came across the term binary. This is the paragraph found in the pdf: To submit your application through iTunes Connect and get it posted on the App Store successfully, make sure you have the followin

  • How to create an ASP.NET application with a default web.config? 2010-02-06

    I am creating an ASP.NET 2.0 application (using C#), and for some reason when I create the initial application it doesn't create the web.config file. Is this normal? I haven't touched ASP.NET in some years so I am a little rusty. I tried creating the

  • how to prevent jerk in chat application - 2010-02-17

    there is jerking in text in my chat application (particularly in IE) as i have set timer for refresh the content for each one second how to prevent this --------------Solutions------------- if using ajax, rather than "replacing" the content in the di

  • how to create english language dictionary application with python (django)? 2010-05-20

    I would like to create an online dictionary application by using python (or with django). It will be similar to PS: the dictionary is not stored in a database. it's stored in a text file or gunzip file. Free english

  • How to create a cross-platform application, doing the interface modules (Mac/Qt/GTK+) in a totally independent manner? (Like Transmission) 2010-06-15

    I'm amazed at Transmission, a BT client. It has a Mac, a GTK+, a QT, a Web Client and a CLI interface to it. I tried reading some of its source to understand how he creates all these interfaces, but no luck. Does the developer creates them using a si

  • How to create an Eclipse RCP application re-using some "Eclipse IDE plugins"? 2010-08-25

    How can I create a RCP application, which looks exactly like the Eclipse IDE with all menus, views, dialogs...? Here is one example: I followed Lars Vogel's tutori

  • How to create a single instance application in C or C++ 2011-03-17

    What would be your suggestion in order to create a single instance application, so that only one process is allowed to run at a time? File lock, mutex or what? --------------Solutions------------- A good way is: #include <sys/file.h> #include

Copyright (C), All Rights Reserved.

processed in 0.067 (s). 12 q(s)