What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Install local apk via html link

BobAchgill

New member
I want to make a link to an apk file that is stored in the same directory locally on my phone as the html file... such that when pressing the link the apk will get installed from the local directory (ie. not downloaded and installed).

example:
<a href="myapk.apk">link</a>

However, I get the error message ...
"unable to download file"

Thanks!
Bob
 
You need to ensure your web server that is going to deliver the APK sets the MIME type properly. It should be application/vnd.android.package-archive for .apk files.

Regards,
Tony
 
Back
Top