Server MIME Type for Android APK files

March 9th, 2011

I uploaded my test Android App to my website but found that the server was just treating the file as plain text so it just appeared in the browser as a regular page.

To force the app to download through a browser was very easy, just edit your .htaccess file to add the following line (assuming you use Apache of course).

AddType application/vnd.android.package-archive apk

Now the phone browser will force a file download so it can be installed by the app installer, easy.

Google BookmarksEvernoteGoogle GmailHotmailWordPressLinkedInFacebookDeliciousShare

One response

  1. polyGeek comments:

    Awesome. Exactly what I was looking for.

Leave a comment

Switch to our mobile site