writing a background program that executes when the main application is closed in android
<p>I am writing an android application, which communicates with server when the user logs in to the application. Now if the user closes the application without logging out, I want to query the server every 15 minutes, to see whether the particular user has received any updates. If yes then, I want to push a notification, on clicking which the user goes straight into the applications activity which shows the update.<br><br>
How can this be implemented in android? Is it possible?<br>
Can anyone suggest solutions using timer? And please remember this background program should run only when the actual application is closed.</p>
