How to find out when a download has completed in mobile when using PHP
<p>I am using a PHP header for downloading a JAR file and <a href="http://en.wikipedia.org/wiki/APK_%28file_format%29" rel="nofollow">APK</a> files in mobile. I can download the files successfully, but I want to show a popup when the download reaches 100%. How do I achieve this? </p>

<p>Is there any callback method for the download complete event?</p>

<pre><code>header('Content-Type: '.$mime);
header('Content-Length: '.$stat['size']);
header('Connection: close');
header('Content-disposition: attachment; filename='.$file_name);
readfile($path_to_file);
</code></pre>
