Android application uses *.apk file as its installation package. It is a variant of the Java JAR file format (which in turn a Zip 2.0 file). Usually the *.apk file is obtained from Android Marketplace, the official channel for getting Android application. However there are some vendors or carriers that allow *.apk file to be downloaded from 3rd-party websites.
Those who elect to upload the *.apk files on their own webserver can add the official Android APK MIME Type to their Apache Web server config file:
Option 1: edit mime.types (for those who have root access)
1. First edit the mime.types file – sudo nano /etc/apache2/mime.types
2. Then add this at the end of the file – application/vnd.android.package-archive
3. Reload the server configuration – “sudo service apache2 reload”
Option 2: edit .htaccess file (for shared server or user who do not have root access)
1. Edit .htaccess
2. Add this line – AddType application/vnd.android.package-archive
This will register the appropriate MIME type for the *.apk file so that both the server and mobile application can handle.
Keep updated with the latest posts, be a part of over 1,000 subscribers! : Subscribe to your email
You might also want to read...
- How to make JavaME .jar files downloadable from Apache Web Server
- My experience with AMD decTOP computer running on Android
- Apache mod_rewrite cheat sheet
- Mozilla Fennec 1.9.2 builds for Android
- 5 things that I look for when getting PHP / MySQL Web Hosting
- Ubuntu One Files client for Android phones
- How to find cause of heavy usage on your Apache webserver