Noga
Noga

Reputation: 145

How can I add chat to an Android app?

I have an android app, and I would like to allow my users to chat with each other.

Searching google, I found a tutorial on android socket programming, but it looks quite complicated and requires me to take care of the server side too.

Is there an easier solution that doesn't require me to basically write it all myself?

Upvotes: 2

Views: 1038

Answers (3)

hungary54
hungary54

Reputation: 767

I would suggest using one of the free SDK like Scringo (www.scringo.com). It is very easy to add - basically all you need is to call

Scringo.init(this);

at the end of your Activity's onCreate() method.

No need for server side programming at all.

Here's a screenshot of Scringo in action: Scringo in action

Upvotes: 2

fedepaol
fedepaol

Reputation: 6862

Another viable solution is to check xmpp protocol and asmack library . I gave it a try a while ago and managed to make it work with gtalk. You can also setup an xmpp server by yourself using their openfire server.

Still better than reinvent the wheel.

Upvotes: 0

Lukas Olsen
Lukas Olsen

Reputation: 5464

i would suggest using a WebView and using a node.js / now.js chat!

It's very simple to setup!

Upvotes: 0

Related Questions