ConnectionException when trying to connect to XMPP server from aSmack Android client

后端 未结 5 581
礼貌的吻别
礼貌的吻别 2020-12-04 02:48

I have been trying to connect to my (locally hosted) Openfire XMPP server from my aSmack Android client for hours now, and it\'s still not working.

I get a org

5条回答
  •  暖寄归人
    2020-12-04 03:45

    It throws exception as you can't make network operation on Android main thread, you should move it to another thread.

提交回复
热议问题