Give back my XMPP in Android!

Avatar of Peter Neubauer

Since the release of the Android SDK 1.0, people (including me) have been complaining about the lack of connectivity for the very convenient Smack API to talk to Googles GTalk servers following http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/, see here.

However, yesterday @Oredev, I met Mike Jennings from the Android team and together we looked into this problem over a beer in the Oracle booth. Looking into the current SVN source at http://svn.igniterealtime.org/svn/repos/smack/trunk/source, it seemed that a fast hack to get things working (especiallly the keystore problem on the device) would be to simply disable SSL negotiation.This does of course not work for SSL stuff, but it gets you going and it is enough for talk.google.com:5222. It is enough to just disable SSL negotiation by hardcoding it away in the ConnectionConfiguration.java, and comment out everything related to java.beans and other packages that are not present on the Android platform to get things working.

After doing that, voila things started to work and I am now happily logging in programatically via SVN Smack again!

Thanks Mike for the hints, help and a great BouncingBall application!

For anyone intersted, I am attaching the patch.

/peter neubauer

smackdiff

Share this post: Share this post with the world.
  • del.icio.us
  • Digg
  • Technorati
  • StumbleUpon
  • Reddit
  • GoGuide
  • SA Blogger
  • Muti
  • TimesURL
  • Facebook
  • Google

Tags: , ,

2 comments ↓

#1 Davanum Srinivas on 11.21.08 at 20:56

Nice!

#2 Chunyen Liu on 12.30.08 at 16:34

Thanks, Peter. I think I found what I need. Now I need to get the Smack source and make a patched version myself.

Leave a Comment