Android Whatsapp/Chat Examples [closed]
Asked Answered
B

2

105

Does anybody have an example or a tutorial for a Android application like WhatsApp? I want to understand how WhatsApp works and how it is programmed.

I want to see an example that uses a message-chat-system with "online"-status and "read the message"-information.

I used Google but I found nothing. Maybe someone has a tip.

Thanks.

Bulgar answered 6/6, 2013 at 6:2 Comment(10)
most of the chatting softwares use XMPP well I can't say what Whatsapp is using but for a starter that should help you app running.Quinquereme
code.google.com/p/simple-android-instant-messaging-applicationDemythologize
WhatsApp used a modified XMPP service, as far as i knowNovercal
Following are links for good articles on XMPP based protocol based instant chat. - davanum.wordpress.com/2007/12/31/… - davanum.wordpress.com/2008/12/29/… Also there is a jchat4android which is Chat Application for ANDROID SDK using Jade Agent Framework. It provide location also.Glenn
Here is a tutorial on creating a chat application for Android using GCM and GAE. It's a simple example of a chat application in general.Thoreau
Telegram is an open source Whatsapp alternative.Olney
Whatsapp is real-time messaging application which makes use of ejabbered (XMPP) server. It's facilitates instant message transfer between two or many users at any given second. ERLANG is the programming language used for quickly adapting to instant updates and hot fixes. For storing multimedia files, the app uses an exclusive web server YAWS. A detailed explanation about whatsapp, click here blog.contus.com/…Exsect
here is an open source sdk with chat, group chat, typing status, read status and other whatsapp features github.com/AppLozic/Applozic-Android-SDKOilcup
This tutorial using Twilio IP Messaging for Android would be a good way to test and learn some basic functionality: twilio.com/docs/tutorials/walkthrough/ip-chat/android/javaCaspar
I created an unofficial client myself, it's still working.Amenable
S
51

If you are looking to create an instant messenger for Android, this code should get you started somewhere.

Excerpt from the source :

This is a simple IM application runs on Android, application makes http request to a server, implemented in php and mysql, to authenticate, to register and to get the other friends' status and data, then it communicates with other applications in other devices by socket interface.

EDIT : Just found this! Maybe it's not related to WhatsApp. But you can use the source to understand how chat applications are programmed.

There is a website called Scringo. These awesome people provide their own SDK which you can integrate in your existing application to exploit cool features like radaring, chatting, feedback, etc. So if you are looking to integrate chat in application, you could just use their SDK. And did I say the best part? It's free!

*UPDATE : * Scringo services will be closed down on 15 February, 2015.

Sayce answered 6/6, 2013 at 6:5 Comment(13)
Scringo looks like great. The Problem here is, when i will start the scringo example on android, i become java.lang.RuntimeException: Unable to start activity ComponentInfo{com.scringo.scringosample/com.scringo.scringosample.MainActivity}: android.view.InflateException: Binary XML file line #36: Error inflating class com.scringo.ScringoLeftActivationButtonBulgar
The thing is I would need to see your code to figure out what's going wrong. How about making a new post specific to the error that you are getting and then attaching your code along with it ? That way you will get more help, even from others. :)Sayce
@Sayce the sample instant messanger doesn't seems to be stable, when you send another user a request, it doesn't update the screen at all.Tiros
Is it so? I would need to check again, because as far as I can remember, things were good the last time I tried.Sayce
@Sayce yes it works, just to make sure this is pure p2p right? as each android has its own server/client and they keep the number of nodes connected on each app..Burk
@Sayce Thanks for sharing information about scringo +10 for thatScrumptious
@Aamir : You are welcome! :) Glad it was of help!Sayce
Scringo is indeed free and good to start with. Unfortunately they don't scale very good for large crowd. A lot of lag.. Too bad. They do a great job.Caressive
@Caressive : Thanks for your insights. So, if you have any other better alternative, please do share. :)Sayce
@Sayce - Do we have library in Android like github.com/jessesquires/JSQMessagesViewController in iOS for Messages UI.Demigod
Well, the most straightforward way would be to use 9 patch images as the background and most of the things would be done in itself. But if you are really looking for libraries, you can have a look at warting.github.io/AndroidChatBubblesSayce
Scringo have shut down their operations : Look for similar resources PubNub , XMPP etcRoundhead
cries criesKonyn
A
18

Check out yowsup
https://github.com/tgalal/yowsup

Yowsup is a python library that allows you to do all the previous in your own app. Yowsup allows you to login and use the Whatsapp service and provides you with all capabilities of an official Whatsapp client, allowing you to create a full-fledged custom Whatsapp client.

A solid example of Yowsup's usage is Wazapp. Wazapp is full featured Whatsapp client that is being used by hundreds of thousands of people around the world. Yowsup is born out of the Wazapp project. Before becoming a separate project, it was only the engine powering Wazapp. Now that it matured enough, it was separated into a separate project, allowing anyone to build their own Whatsapp client on top of it. Having such a popular client as Wazapp, built on Yowsup, helped bring the project into a much advanced, stable and mature level, and ensures its continuous development and maintaince.

Yowsup also comes with a cross platform command-line frontend called yowsup-cli. yowsup-cli allows you to jump into connecting and using Whatsapp service directly from command line.

Abramabramo answered 6/6, 2013 at 6:4 Comment(6)
GitHub has removed this. Can you provide other location or source of this? I would be very much grateful. I googled it too much, but found nothingZia
@blganesh links tend to die even they are from github ;)Burk
Sorry folks. I'm not the owner of this. I will anyways try to look for an alternate solution.Abramabramo
@Abramabramo - Do we have library in Android like github.com/jessesquires/JSQMessagesViewController in iOS for Messages UI.Demigod
u mean this talkwithstranger.com/talk-to-strangersCalefactory
hi do you guys have any sample for android in which they use yowsup ?Repugn

© 2022 - 2024 — McMap. All rights reserved.