views:

464

answers:

1

I'm looking for a sample web page (html code) with a link that will install an apk file directly on my phone by clicking on the link.

+1  A: 

Just link to the apk file in the HTML. It couldn't be any simpler.

<a href="path to my .apk file">link</a>

You will have to have "install apps from unknown sources" enabled on your phone.

mbaird
However, the install may not start immediately; the user may have to manually click on the APK in their browser's downloads list. Then they'll need to click the "Install" button to approve your app's requested permissions. The short answer is it's not possible with a single click. And if the user doesn't have the "unknown sources" option enabled (it's disabled by default), they'll get a warning message and the install won't happen.
Christopher
And, the Web server should have the APK MIME type set up: application/vnd.android.package-archive
CommonsWare