Html page to download and install apk from browser

前端 未结 3 1813
不知归路
不知归路 2020-12-21 06:51

I have an app that will be installed by the user from a public webserver (outside android market).

So I hosted the apk in webserver and instructed the users to type

相关标签:
3条回答
  • 2020-12-21 07:02

    If browser is written not by you, then it doesn't know what to do with downloaded apk file. Ask user to download something like EasyInstall to install side-loaded apks or place you apk on Google Play. Google Play app on the device knows how to install apk.

    -- True at the time of writing: Aug. 2012

    0 讨论(0)
  • 2020-12-21 07:02

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

    0 讨论(0)
  • 2020-12-21 07:16

    Normally, you just link to the .apk file. When the user clicks on such a link, the .apk file is downloaded and the installation is automatically started (with a dialog like 'do you want to install this application').

    So, just <a href="yourdomain.com/yourapp.apk">Download and install...</a>.

    Important! This only works if your users allow installation from 'Unknown sources' in settings/security.

    0 讨论(0)
提交回复
热议问题