Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在android xmpp中的openfire服务器中保存两个用户之间的聊天_Android_Xmpp_Openfire - Fatal编程技术网

在android xmpp中的openfire服务器中保存两个用户之间的聊天

在android xmpp中的openfire服务器中保存两个用户之间的聊天,android,xmpp,openfire,Android,Xmpp,Openfire,!![在此处输入图像描述][1] 可以在openfire服务器中保存聊天历史记录。我已经配置了OpenFire3.9.3并连接了mysql数据库。在mysql数据库中提供了很多表,但在这些表中我们找不到任何聊天信息表来保存两个用户之间的聊天。如果有开发人员知道如何保存聊天信息并使用xmmp在openfire中获取聊天信息。请尽快帮助我 //很抱歉,我不能发布openfire和mysql db的图片,因为声誉低于10 // Set a listener to send a chat text me

!![在此处输入图像描述][1]

可以在openfire服务器中保存聊天历史记录。我已经配置了OpenFire3.9.3并连接了mysql数据库。在mysql数据库中提供了很多表,但在这些表中我们找不到任何聊天信息表来保存两个用户之间的聊天。如果有开发人员知道如何保存聊天信息并使用xmmp在openfire中获取聊天信息。请尽快帮助我

//很抱歉,我不能发布openfire和mysql db的图片,因为声誉低于10

// Set a listener to send a chat text message
    Button send = (Button) this.findViewById(R.id.send);
    send.setOnClickListener(new View.OnClickListener() {
        public void onClick(View view) {
            String to = mRecipient.getText().toString();
            String text = mSendText.getText().toString();
            if(!text.equals("")){
                if(connection!=null){

                    Message msg = new Message(to+"@172.167.41.165", Message.Type.chat);
                    msg.setBody(text);
                    connection.sendPacket(msg);
                    messages.add(connection.getUser() + ":");
                    messages.add(text);
                    setListAdapter();
                    mSendText.setText("");
                }

            }else{
                Toast.makeText(XMPPClient.this, "Please Fill Input Field", Toast.LENGTH_LONG).show();
            }
        }
    });

您好,您可以为此使用openfire监控插件