Android and XMPP: Currently available solutions
Smack
Smack is a open-source XMPP client library. Since version 4.1 it runs natively on Android. For more information have a look at the "Smack 4.3 Readme" and see the Smack project page at Ignite Realtime.
Better Way to implement the chat application using XMPP on Android?
The Stackoverflow question "Android and XMPP: Currently available solutions" provides a good overview of XMPP client libraries for Android.
Another good resource is xmpp.org/xmpp-software/libraries.
using XMPP with a .net server and android client
1) Find a server.
There are several XMPP servers available if you go to the XMPP site and check their handy list.
Personally, I'm using OpenFire and find it super easy to set up and use. Install, run it, and follow the setup wizard. I would not recommend trying to write your own XMPP server functionality into your own code as it gets complicated quickly. You can easily run a chat server side by side with your web services and have the app on the Client end communicate with both. This still serves up a seamless interface to the user.
2) Find a library for XMPP development on Android.
aSmack is pretty much what most Android devs use for this. (Info, plus link to code can be found here.) If you need more step-by-step help on how to develop this for the Android, I'd suggest searching for/posting more specific questions regarding how to use the library.
I hope this helps.
Cannot get list of public rooms from xmpp Server on Android?
I have found the Solution to the problem.
The Android asmack library was using this in
getHostedRooms(Connection connection,
String serviceName) method
ServiceDiscoveryManager discoManager =ServiceDiscoveryManager.getInstanceFor(connection);
i replaced it with
ServiceDiscoveryManager discoManager = new ServiceDiscoveryManager(connection);
For those who are confused where this method is its in
Package: org.jivesoftware.smackx.muc
File: MultiUserChat.java
After you have done this. We have to register all the providers in Android whose detail can be found here. These providers are automatically registered when are using JAVA's smack library (In java Development) but in Android we have to register them ourself.
Chat application in android using xmpp
Why not use GCM? You can send a payload up to 4kb as in a message. And the service is free.
https://developer.android.com/google/gcm/index.html
XMPP with Android
I have made good experience with Smack as a XMPP-library for Java. People also have used it successfully with Android.
For more alternatives, xmpp.org has an extensive list.
Related Topics
How to Pass Data Between Fragments
"Debug Certificate Expired" Error in Eclipse Android Plugins
Android Completely Transparent Status Bar
Android Respond to Url in Intent
Getting an Issue While Checking the Dynamically Generated Checkbox Through List View
How to Load Script from Assets Index.Android.Bundle on Windows
Open Facebook Page from Android App
Volley Jsonobjectrequest Post Request Not Working
Android - Listen For Incoming Sms Messages
Android: How to Get the Current Foreground Activity (From a Service)
How to Capture the "Virtual Keyboard Show/Hide" Event in Android
How to Prevent Android Taking a Screenshot When My App Goes to the Background
How to Programmatically Set Style Attribute in a View
Determining the Size of an Android View At Runtime
How to Convert a Base64 String into a Bitmap Image to Show It in a Imageview
Viewpager and Fragments - What's the Right Way to Store Fragment'S State