How to run an app in background
<p>I am developing an app using the Smack API. Whenever a message is received for a specific user from a jabber server, a dialogue from the background app should appear to display the message. So a user has to be logged in to display the dialogue. The problem is, it shows the dialogue when the user logs in the first time, but never shows the dialogue when the second message is received. Please Help!</p>
