使用自己的XMPP服务器为Android聊天应用程序(啪API) [英] Using your own XMPP server for android chat app (Smack API)

查看:137
本文介绍了使用自己的XMPP服务器为Android聊天应用程序(啪API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid programming.I已经完成了基础知识,但并希望了解XMPP制作Android上聊天应用程序。我已经通过教程走了,但还没有到使用自定义的PC作为服务器的application.I想用我的笔记本电脑作为服务器2的android devices.My笔记本电脑之间传递消息应该能够接受她和直接的方式在two.Can人之间的消息,请帮助我开始?

I am new to Android programming.I have completed the basics though and wish to learn XMPP for making a chat application on Android. I've gone through tutorials, but have not got the way to use a custom pc as server for the application.I want to use my laptop as a server for sending messages between 2 android devices.My laptop should be able to recieve and direct the messages between the two.Can anyone please help me get started?

推荐答案

首先,您需要安装在你的笔记本电脑一个XMPP服务器。 此处可用的人的名单。人们常常说的Openfire 是易于安装和配置,而是要生产目的的ejabberd(Linux和Mac只)似乎是更加健壮。

First of all, you need to install in your laptop a XMPP server. Here are a list of available ones. People used to say Openfire is easy to install and configure, but to production purposes Ejabberd (linux and mac only) seems to be more robust.

要开发自己的应用程序,您可以使用 aSmack 库。这是一个小的软件层使用与Android设备。您将使用aSmack大多喜欢啪本身,这是大井记录,用$ C $ Ç快照连接到服务器上,创建一个聊天,收发邮件等。

To develop your app, you can use aSmack library. It is a small software layer to use Smack with android devices. You will use aSmack mostly like Smack itself, which is large well documented, with code snapshots to connect to a server, create a chat, send and receive messages etc.

编辑16/01/2015

EDIT 16/01/2015

我意识到现在的拍击支持Android开发,因为4.1版

I realized right now that Smack supports android development since version 4.1

这篇关于使用自己的XMPP服务器为Android聊天应用程序(啪API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆