If you want to put your .apk files up on your server, like I often do, so that friend/family can download and test for you – suckers – then you might run into an issue with mime-types like I did. Every time I tried to download the .apk file I got a “unable to download file” error on my phone. Fortunately the solution is very simple. Just create a .htaccess file and place it in the folder where your .apk lives and place the following text in the file:
AddType application/vnd.android.package-archive apk
The file should download fine after that.





If you are running on IIS, you need to add the mime-type within the IIS Manager. Using the Mime-Type you listed above works wonders :)
Nick Kwiatkowski recently posted..Creating a Windows AIR Native Extension with Eclipse – Part 4
@Nick What’s IIS? Just kidding. :-) Thanks for the info.
Thanks for the tip !
There is any way to notify the users that a newer version of an application is available, when you put the files on a private server?
And if there is, witch approach should i take in order to automatically update the app with minimum user intervention (on their devices i mean) ?
@Derhel, There is a way. I had to build my own updater for a client project. Essentially I just check a text file on the server on an interval. If the version number is different than what the application has then I auto-download the new version and then execute the new .air file and then present the user with a screen telling them to close the app and “Replace”.
Keep an eye out here. I’ll blog about that soon.
Thanks!
I’l be waiting.