Click here to Skip to main content
14,330,747 members
Rate this:
Please Sign up or sign in to vote.
See more:
Can anyone advise as to the best practice for implementing an apk download link on a webpage? In the past I have always used the an input button with javaScript in the onClick like this:

This used to work just find but it looks like chrome (android version) has decided it wants to ignore the fact that it is an .apk file and just try to open a html page resulting in another tab with the same page opening.

Still works with other browsers but not Chrome. I guess there is a another way?


What I have tried:

Searched several forums and googled everything but cannot find any relevant results.
Updated 3-Oct-19 1:33am
ZurdoDev 4-Oct-19 13:25pm
What is an apk file? What exactly do you want to have happen?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100