[文章作者:张宴 本文版本:v1.0 最后修改:2010.01.20 转载请注明原文链接:http://blog.zyan.cc/android_apk_zip]

  前天,金山网络的一位同事向我咨询了一个问题:很多用户反映,网站上提供的Android手机应用程序文件“xxx.apk”,用IE浏览器下载,扩展名就被自动被重命名成了“xxx.zip”,拷贝到手机上无法安装。我发现,由于APK文件本身就是压缩包,如果用户的电脑上装了WinRAR(85%的装机量),用IE下载APK文件,扩展名就会被自动改为“.zip”。

  如果你的下载服务器为Nginx服务器,那么,在Nginx安装目录下的conf/mime.types文件的对应位置,加上以下一行语句,指定APK文件的MIME类型为 application/vnd.android.package-archive 即可:

application/vnd.android.package-archive     apk;


  截至本文发布时,存在“xxx.apk”下载时被自动重命名为“xxx.zip”问题的网站很多,其中不乏一些提供 Android 程序下载的知名网站,例如:新浪微博、街旁网。

  新浪微博官方 Android 手机客户端下载页:http://t.sina.com.cn/mobile/android.php

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  街旁 Android 版客户端下载页:http://we.jiepang.com/client-android/

  点击在新窗口中浏览此图片



  增加APK文件的 MIME 类型后,用IE下载就正常了,例如:金山手机卫士、腾讯手机QQ

  金山手机卫士下载页:http://m.ijinshan.com/

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片

  腾讯手机QQ Android版下载页:http://mobile.qq.com/2010/android/

  点击在新窗口中浏览此图片

  点击在新窗口中浏览此图片


Tags: , , , ,



技术大类 » 移动互联网与手机 | 评论(96) | 引用(0) | 阅读(112407)
Njenkz Email
2014-8-12 01:56
this was a really nice post. In idea I would like to put in writing like this additionally – taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and by no means seem to get something done.

PokerStar88.com Agen Texas Poker Dan Domino Online Indonesia TerpercayaJagadPoker.com Agen Texas Poker Dan Domino Online Indonesia TerpercayaRajaPoker88.com Agen Texas Poker Dan Domino Online Indonesia Terpercaya
fenuz Email Homepage
2014-11-26 22:54
Hay varias razones principales por las que definitivamente se puede encontrar su voluntad sobre las soluciones de contabilidad que implican todo Stansted, aunque algunas personas podrían los hombres y mujeres,pusat grosir  que probablemente tendrán que tener soluciones contables en comparación con las personas. desain rumah minimalis
fenuz Email Homepage
2014-12-1 21:32
fenuz | desain rumah minimalis | desain rumah minimalis | pusat grosir | desain rumah minimalis | Game Komputer |  resep masakan | pusat grosir | service laptop | Toko Online
Metin2 Yang Hack Email Homepage
2015-3-15 02:09
谢谢分享 Metin2 Yang Hack
Billy
2015-3-18 22:06
我设计app ui 经常用http://gofreedownload.net 找素材
Steven Email Homepage
2015-3-19 02:27
Thank you for this post Weight Loss Tea
sqdsqd Email Homepage
2015-3-20 05:36
desain Email Homepage
2016-5-18 14:05
Kumpulan berbagai macam desain rumah minimalis
desain Email Homepage
2016-5-18 14:07
kumpulan berbagai macam http://rumahminimalisideal.com/
anon
2016-6-14 20:04
jennyhannb Email
2018-10-24 15:06
Play free games online! geometry dash full game.
jennyhannb Email Homepage
2018-10-24 15:06
Play free games online! geometry dash full game.
geometry dash Email Homepage
2018-10-24 15:07
用IE浏览器下载,扩展名就被自动被重命名成了“xxx.zip”,拷贝到手机上无法安装。我发现,由于APK文件本身就是压缩包,如果用户的电脑上装了WinRAR(85%的装机量)
Academic Report Writing Services Email Homepage
2019-11-25 21:28
Academic Report Writing Company should also strive to ensure that all Custom Academic Paper work meets the standards of examining bodies hence ensuring that all are Original Custom Essay Papers.
fnaf world Homepage
2020-3-2 14:17
The article is so useful, thanks for the information. I did not think about it before seeing your post! I really appreciate that I’m hoping to see your next post, soon. fnaf world
Creative Writing Services Homepage
2020-7-30 20:46
Students find Creative Writing Services as being of great assistance since they are able to complete their creative essay writing services and custom creative coursework writing services on time.
MapQuest Email Homepage
2021-4-26 12:41
Useful navigable web find locations accurately and quickly, sharp images, easy to spot, traffic updates anytime, anywhere https://mqdirections.com/
impossible game Homepage
2021-6-14 16:20
You can find hundreds of games that are engaging, interesting, and just right for you at Impossible Game. They are completely free for you!
jigsaw puzzles Homepage
2021-6-14 16:23
You can find hundreds of games that are engaging, interesting, and just right for you at jigsaw puzzles. They are completely free for you!
JEFFYS Email Homepage
2022-6-27 06:47
สูตรสล็อต แนะนำสูตร สล็อต ออนไลน์ ที่จะทำให้คุณชนะเกมสล็อตง่าย ๆ แบบที่คุณไม่เคยได้สัมผัสมากก่อน ถ้ารู้สูตรแล้ว การชนะเกมสล็อตออนลไน์ก็ทำได้ง่าย ๆ รวยกันถ้วนหน้าเลย
分页: 4/5 第一页 上页 1 2 3 4 5 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]