本文介绍了QBPrivateChatManager越来越空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到QBPrivateChatManager为空,我使用下面的code:
I am getting QBPrivateChatManager as null , I am using following code :
QBChatService chatService = QBChatService.getIntance();
privateChatManager = chatService.getPrivateChatManager();
让privateChatManager为空。
getting privateChatManager as null.
推荐答案
您必须首先创建用户会话
You must to create User session first
QBAuth.createSession(new QBUser("garrysantos", "garrysantospass"), new QBEntityCallbackImpl<QBSession>() {
@Override
public void onSuccess(QBSession session, Bundle params) {
// success
}
@Override
public void onError(List<String> errors) {
// errors
}
});
查看更多: http://quickblox.com/developers/Android_XMPP_Chat_Sample
这篇关于QBPrivateChatManager越来越空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!