Android - Notify the user about availability of new version from a Service
<p>I have written code to programmatically check a URL the for new version of application from a <code>Service</code>. The URL will return the latest version and URL of the APK file.</p>

<p>Now how can I notify the user about the update from the <code>Service</code>?</p>

<p>I want to show some dialog box/some message box in the layout itself with the direct link to the APK or a clickable link where user can manually download the APK file.</p>

<pre><code>if (latestVersionCode &gt; currentVersionCode) {
 // Notify the user
}
</code></pre>
