1

I have MyApplication.apk in a directory named downloads on my Tomcat Apache server, and I made a link to that file in a web page so my Android Smartphone would be able to download and install it. However, it can't download it, whereas my PC web browser can.

I did some research on Stackoverflow (this subject for example) and the web, and found out that I had to add the mime-type for apk files in my server (in the file web.xml in the project named Server in Eclipse). I did that.

I also saw that I had to create an .htaccess, place it in the contexts I called, and write a line to add apk mime-type. I also did that.

But I still can't download my apk in my smartphone web browser ! Does anyone has an idea ?

NB : I use Eclipse to run my Apache Tomcat. My application is signed and its weight is 1.5MB.

Community
  • 1
  • 1
cleroo
  • 1,145
  • 2
  • 11
  • 17

1 Answers1

0

Should put mime-type:application/vnd.android.package-archive

Benjamin Harel
  • 2,906
  • 3
  • 24
  • 32