How do I create a XMPP chat client in Android for Yahoo, Gmail, AOL, etc., How do Nimbizz, eBuddy, Fring do it?

有帮助吗?

解决方案

Use Smack API. It provides all you need.

Hope this helps.

其他提示

You need to implement every single protocol your IM platforms use:

  1. GTALK (XMPP)
  2. Yahoo (proprietary protocol)
  3. AOL (Oscar)

So on, so forth.

Alternatively, you can have a SINGLE PROTOCOL on your Android device and use a PROXY IM SERVER to connect to all accounts (I think this is the way FRING and EBUDDY do it, not sure though).

The Pidgin IM client has its own libpurple, which implements pretty much all of the major IM protocols. There's some details and dogs on their site about the architecture.

But, basically, unless the IM network has published the specs on their protocol, most multi-network clients have to do reverse engineering (and/or just grab details from something like libpurple) to do their own implementations.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top