I am currently building an Android app using HTML5. Inside my app, I am providing link to a HTML file available inside tomcat server on my machine.
<div><a href="http://localhost:8082/directDownload/sample.html">Beep</a></div>
The HTML file "sample.html" has link to download a file in same file location, where the sample.html is placed.
sample.html has this --> <a href="MyFirstOnMosync.apk">Click to download</a>
The problem here is, when I run my app on an android mobile, the link stays dumb and it won't initiate the download from the given path.
But, the same URL when I open in a web browser, the download starts.
Could anyone let me know why this URL is not initiating the download inside my app?? I already enabled "Allow installation of non-Market applications" in the settings of my android device.