Thanks, that sorted the error out, but now when i run the app, the
process stops unexpectedly.  iam not using the patched version of
smack.jar, i read that u need to have the patched version for it to
work with android. If u have it please send me a copy. Thanks in
advance. Earlence

On Dec 22, 7:11 am, Mark Murphy <mmur...@commonsware.com> wrote:
> Tez wrote:
> > I am trying to build a small XMPP client for Android using the Smack
> > API for Java. I have setup the API in  my eclipse environment.
>
> <snip>
>
> > When i debug the app, i get the foll. errors in LogCat
> > (The exception is thrown when the conn.connect() method is
> > encountered)
>
> > 12-19 20:22:06.552: ERROR/OSNetworkSystem(229): unknown socket error
> > -1
> > 12-19 20:22:08.932: DEBUG/--EARL--(229): XMPPError connecting to
> > jabber.org:5222.: remote-server-error(502) XMPPError connecting to
> > jabber.org:5222.
> > 12-19 20:22:08.932: DEBUG/--EARL--(229):   -- caused by:
> > java.net.SocketException: unknown error
>
> One cause of "unknown socket error -1" is because you don't have the
> INTERNET permission in your AndroidManifest.xml file.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.9 Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to