Code Monkey home page Code Monkey logo

smackdemo's Introduction

SmackDemo

A demo for IM in Android based on XMPP protocol. With the server of Openfire.

IM实时通讯在Android中的实现,通过本应用可以实现实时聊天。本应用为研究Openfire的demo,更多功能扩展请移步Openfire

###How Please config the folowing parameters with your own Openfire server address and your servername.

    private final String serverAddress = "replaceWithYourIP"; // Your server address or IP
    public static final String serverName = "replaceWithYourServerName"; //xmpp name or your server name

###Website http://www.gongmingqm10.net/blog/2014/10/21/openfire-android-im-kuang-jia-shi-yong/

###Note

  1. Make sure you have added the Internet permission in your manifest to avoid [org.jivesoftware.smack.SmackException$NotConnectedException, <uses-permission android:name="android.permission.INTERNET"/>.
  2. When you want to use ChatManeger.createChat(String userJID, MessageListener listener), please make sure userJID is correct. Currently I use yourusername@servicename, otherwise the chat cannot be created correctly. More details please see here

###About me I am a Android developer works at ThoughtWorks Inc.

Personal blog: http://www.gongmingqm10.net/.

Any problem, don't hesitate to make a pull request.

smackdemo's People

Contributors

gongmingqm10 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.