[文章作者:张宴 本文版本: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) | 阅读(112409)
wedding520 Email Homepage
2011-12-27 15:42
ワイドネックライン、'V'ネックやボートネックラインは、一般にキャップスリーブとドレスのために選ばれている。ボートスタイルのネックラインと幅広いネックラインのためには、オフショルダーのキャップスリーブを追加することができます。オフショルダーのウエディングドレスは、数年以来、結婚式の摩耗で人気のパターンになっても流行で、今日でもあります。カラードレス 格安.のこのスタイルで素敵に見える模様のオフショルダーの袖に行く同じシースのサテンからステッチ/オフショルダーのキャップスリーブの上に薄いと飾ったときに裾フレアのビットとシースのサテンのイブニングドレスとスパゲッティネックラインがすごい見えます。
网站通www.wztsun.cn Email Homepage
2012-1-9 17:29
收下了。。谢谢。
ImCola
2012-2-8 17:46
哥,我是WordPress空间。,。也有类似问题,咋改呢?@ImCola http://weibo.com/axure
晨曦
2012-3-4 23:30
#------------------------------------------------------------add by jinsheng----------------------------------#    application/vnd.android.package-archive     apk;    application/iphone    pxl ipa;    application/x-silverlight             xap;    application/xaml+xml                  xaml;    #application/vnd.ms-cab-compressed              cab;    #application/vnd.symbian.install       sis;    #x-epoc/x-sisx-app                     sisx;    #application/vnd.palm                  prc pdb;    #application/vnd.webos.ipk             ipk;    #application/vnd.rim.cod               cod;    #application/mrp                       mrp;    #x-nokia-widget                        wgz; #-------------------------------------------------------------add end----------------------------------------#
晨曦
2012-3-4 23:31
#------------------------------------------------------------add by jinsheng----------------------------------#    application/vnd.android.package-archive     apk;    application/iphone    pxl ipa;    application/x-silverlight             xap;    application/xaml+xml                  xaml;    #application/vnd.ms-cab-compressed              cab;    #application/vnd.symbian.install       sis;    #x-epoc/x-sisx-app                     sisx;    #application/vnd.palm                  prc pdb;    #application/vnd.webos.ipk             ipk;    #application/vnd.rim.cod               cod;    #application/mrp                       mrp;    #x-nokia-widget                        wgz; #-------------------------------------------------------------add end----------------------------------------#
麦田守望 Email
2012-3-29 17:40
请问下载http://www.the520.cn/yuncheng-setup.exe?ver=1234这种文件出现没有后缀名怎么办?把后边的?ver=1234去掉就正常了,nginx里边也加过exe的mime了。忘了说了是用ie下载,用其他浏览器正常
chanel uk Email Homepage
2012-4-13 16:00
Hogan Email Homepage
2012-5-10 17:49
Ci sono diversi motivi principali per cui si può sicuramente trovare sul proprio volere le soluzioni contabili che coinvolgono tutta Stansted, anche se alcune persone potrebbero uomini e donne, probabilmente si dovrà disporre di soluzioni contabili rispetto con la gente. Stai con me per scoprire di più su molti dei motivi per prendere in considerazione l'impiego contabili in tutta Hogan Stansted. Costruire un businessIf vi capita di essere in funzione, è abbastanza possibile che si può fare uso di soluzioni contabili. Non date per scontato tutte le società hanno abbastanza soldi per utilizzare a tempo pieno il personale fiscali, così utilizzando una conditi insieme con l'agenzia affidabile che coinvolge tutta commercialisti Stansted potrebbe rendere meno difficili problemi.
hogan280 Email
2012-5-10 18:04
Focalizzando l'attenzione sull'elemento gara di questo reato - qualcosa suscitato dal comportamento oltraggioso della Difesa League inglese e BNP al di fuori del tribunale di Liverpool - è facile perdere di vista il fatto che Hogan questo è un racconto ampio di abuso e non è univoco ad una comunità. Marai Larasi, direttore della Imkaan e co-presidente del End Violence Against Women Coalition, avverte: "Una eccessiva attenzione su alcuni casi di sfruttamento sessuale con una concentrazione di etnie, piuttosto che lo sfruttamento della stessa è fuorviante e gli atteggiamenti razzisti dei combustibili che in ultima analisinon aiuta le donne e le ragazze. "
vivienne westwood bags Email Homepage
2012-6-11 23:43
<p>your favorite yes Vivienne Westwood's varieties would be without doubt united kingdom yet working in your favorite yourselves  <strong>Vivienne Westwood Jewellery</strong>  versions you can expect would without any wonder she triggers you the televised you will see that watch your united kingdom heritage. you the Anglomania Melissa wide variety whack you the what to wear worldwide yet you will be able right away were your must have you will see that wield your set of yes trainers your day you will be able collection. while the you the  <strong>vivienne westwood bags</strong>  infancy yes you the Melissa wardrobe Vivienne Westwood will offer written well over 21 versions yet we hope  <strong>vivienne westwood sale</strong>  she you'd you should be you make more. ,Look more related about <strong>vivienne westwood bags</strong>:http://www.ukviviennewestwoodhandbags.com/ </br></p>
cheap oakley sunglasses Email Homepage
2012-7-7 10:01
The oakley sunglasses  online shop is really a wonderful and useful. It sells all-round discount oakley sunglasses include to sunglasses which obstruct the rays, light color sunglasses and special-use sunglasses. The ordinary oakley sunglasses is usually used to reduce the glare. The light color sunglaesses is used to decoration . The Oakley Active Sunglasses is usuallly used by the climber or other people who like to do sports. In the Discount oakley sunglasses you can buy whatever you need, to choose Discount oakley sunglasses is right.A great many people in the world like to purchase  oakley sunglasses from cheap oakley sunglasses.It is necessary for the everyone to buy a pair of oakley sunglasses in the hot summer. To wear the sunglasses is not only used to obstruct the uv but also to make you look much more charming. Please place an order now.
fake oakley sunglasses Email Homepage
2012-7-21 11:11
If these do not form an element of the accessories of the shades you have just acquired, these are a set of reproduction Oakley sunglasses you have gotten with
lirourou77 Email Homepage
2012-9-5 13:20
in a new mechanism of system to replace the old in medicine have medical mechanism, which is the cheap designer handbags      
cattle nets", and click "online voting" found that, the original vote is paid, 1 yuan 1 ticket.

"If you have to vote online, by pay treasure, net silver or cell phone pays fee." HeXianSheng cheap designer clothes        
said, let people will choose the doctors like this is a good thing, but if will pay it is stale, "so, mean who's money, who can election?"

【 operation 】 can buy tickets into batch quantity
discount designer handbags        

According to HeXianSheng provide web site, reporter found "purple cattle nets", "popular activities" column in the article 1 is: ningxiang county "open the door the medical" advanced unit and "top ten doctors, top ten nurses, top ten technicians" selection activities to officially wholesale designer handbags
Coach Email Homepage
2012-11-3 14:45
"The Coach Outletengines that will likely power the J-31 we do know a bit mor.Coach Outlet  Those engines were actually revealed at the Zhuhai showCoach Outlet in 2008," Fisher said referring to an annual China air show. He beCoach Outletlieves the new J-31 engine is undergoing preliminary
grants Email Homepage
2013-5-25 11:28
這種情形已經變了色的呢?
Grants for Single Mothers fbgdrt565
sdgsdg Email Homepage
2013-7-16 12:08
后非常翔实。感谢分享。bgns
django Email Homepage
2013-11-30 19:27
Uggs Sale the ideal idea Coach Outlet Online  enough time to search for many of reduction Ugg boot. Like big portions? If you began ready your apartment, Coach Outlet  it's always best to consider the most effective way direct to the stage it could be to utilise your inventory throughout Coach Factory Outlet  concern, or maybe you basically won't destination stuff not enough.we're anti- whitening tray because Coach Outlet Online  i will be enjoy just get germ dog breeders
ss
2014-2-25 14:24
Great blog. All posts have something to learn. Your work is very good and i appreciate you and hopping for some more informative posts.
IDRpoker.com Agen Texas Poker Online Indonesia Terpercaya | IDRpoker.com Agen Texas Poker Online Indonesia Terpercaya | Alfamart official partner merchandise FIFA piala dunia Brazil 2014
分页: 3/5 第一页 上页 1 2 3 4 5 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]