如何发送和Android的使用asmack库接受好友请求?好友、Android、asmack

2023-09-06 10:07:57 作者:回眸〆泪倾城

我想开发简单的聊天应用程序,我不是XMPP那么多熟悉的。我有配置opnfire服务器,并使用相同的lib asamck建立的连接。现在,我能与Openfire的注册用户,但我有同样的一些基本问题。

I'm trying to develop simple chat application, I'm not that much familiar with XMPP. I have configure opnfire server, and established connection with same using asamck lib. Now I'm able to register user with openfire, but I have some basic question about same.

如何开始聊天? 是否有必要发送,接收,并接受开始聊天之前,好友请求?如果是,如何做到这一点。是不是需要的任何服务,或广播接收器来接收请求或聊天消息?

我已经做了很多的研究一样,但我没有得到任何妥善的解决办法,请尽力帮助我,如果你对我所有的问题的解决方案。

I have done lots of research on same, but I don't get any proper solution, please try to help me If you have solution for my all queries.

是XMPP来回回的Andr​​oid任何参考书?

Is any reference book on XMPP fro android?

推荐答案

这对我的作品:

是否有必要发送,接收,并接受好友请求  开始聊天之前?

Is it necessary to sending, receiving, and accepting friend request before starting chat?

没有,在Openfire的您可以配置这一点。

No, in openfire you can configure this.

是不是需要的任何服务,或广播接收器接收  请求或聊天消息?

Is it required any Service, or Broadcast Receiver to receive the request or chat messages?

没有,你只需要在你的连接监听器。在这里,你可以看到一个例子:

No, you only need a listener in your connection. Here you can see an example:

的http://developer.samsung.com/android/technical-docs/Building-a-Chat-Application