Original article is here.
But before diving into the server setup and programming issues, below two articles might be helpful to give you an idea on what XMPP is:
Instant messaging (IM) is nowadays one of the most used ways of communication and collaboration. In the next few articles I will be discussing how to create an infrastructure for instant messaging (IM) in your network.
Below articles will show you how to install and configure an IM server, as well as how to use a XMPP library in Java in order to add instant messaging capabilities to your own application using Smack library.
Original article here. Deserves a read.
An insightful ebook published by ThoughWorks. Deserves a perusal!
Download PDF here.
In our recent Android App development, we developed many static utility functions, which needs a Context as the argument:
public static void func1(Context context, …)
public static void func2(Context context, …)
public static void func3(Context context, …)
public static void funcN(Context context, …)
This is very cumbersome. We would like to refactor these utility functions into functions without the context argument/ A natural idea to pass in the application context at the very beginning, e.g. Application.onCreate() function, but not in all cases, can we use the application context. For instance, when you create a dialog or toast window, we need to use Activity as the context. So here comes the function that works:
Visit this gist to get the source code.