This is something that your web server includes when the file is
downloaded. If you are just serving the file out of a directory via
Apache web server, then one way you could set it is to add this line
to a .htaccess file in the same directory:
AddType application/vnd.android.package-archive apk

On Jan 11, 12:07 am, Jags <[email protected]> wrote:
> > make sure you send the right mime type with your file.
> > application/vnd.android.package-archive
>
> I would appreciate a little elaboration on this.
>
> Is there a provision of mentioning mime type while exporting the apk
> from eclipse ? Or should I mention when putting href in my website ?
>
> regards
>
> On Jan 8, 5:55 pm, Mark Murphy <[email protected]> wrote:
>
> > Jagswrote:
> > > I develop for Android in mac .
>
> > > Apart from publishing my app in google market, I also provide the apk
> > > file on my website. As, unlike iPhone android published apps dont give
> > > us a link similar to itunes link to app, we provide our link pointing
> > > to apk file.
>
> > > Now the problem is, this apk file when downloaded from internet
> > > explorer is being by default saved as .zip file. the hyper link
> > > mentions .apk, but only when the save as dialog comes, it prompts to
> > > be saved as .zip. if i rename it to .apk, it works just fine. How will
> > > I prevent this file from being saved as zip file ?
>
> > Do you have the APK MIME type set up on your Web server?
>
> > application/vnd.android.package-archive
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 1.1 Available!
>
>
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to