Can't install APK hosted my own apache server

Posted by Ogre_BGR on Stack Overflow See other posts from Stack Overflow or by Ogre_BGR
Published on 2010-08-25T19:02:01Z Indexed on 2010/12/29 8:53 UTC
Read the original article Hit count: 169

Filed under:

I've exported an apk from eclipse. I am able to install it without any problem if I copy it to the phone's sd card.

When trying to download via phone's (Galaxy S) browser I get: "Download unsuccessful".

I have set mime type application/vnd.android.package-archive in the mime.types, restarted apache, still same result. Also tried :

<a href="downloads/my_apk.apk" type="application/vnd.android.package-archive">Download App</a>

Still no luck.

I am able to download and install applications from android market. I suspect that apache is not sending the mime type but this is just a shot in the dark. How can I fix the problem and be able to install APKs from my web server? (or at least to check if apache sends correct header with mime type)

Any help will be appreciated.

© Stack Overflow or respective owner

Related posts about android