how to distribute your app on iis

Reviewnow

Active Member
Licensed User
Longtime User
After hours of research i was able to create a download link for my app on a windows server. here are the instructions for doing so.

under iis create a mime type by right clicking on your server name then click properties. select mime types button and add .apk with the mime type
application/vnd.android.package-archive


Next

create a download.aspx page or whatever you want to call it

add the following to your page

<html>
<asp:HyperLink ID="lnkdwnload" runat="server" NavigateUrl="~/myfile.apk">Download myfile</asp:HyperLink>
</html>

Next in web.config add the following under <system.webserver>
<staticContent>
<mimeMap fileExtension=".apk" mimeType="application/vnd.android.package-archive"/>
</staticContent>

Restart IIS and your users can now download your app

Make it a great day..
 

mjcoon

Well-Known Member
Licensed User
It might be useful to post this on the Android sub-forum as well...

(This is Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips)

Mike.
 
Top