I have a drupal-based site where people can log in and view private forums. Here I want my beta testers to download beta .apk files for my Android application. I tested it completely on my Android 1.6 based on myTouch 3G and was able to log in and download files attached to forum posts without any problems.
Now comes the interesting part: my testers on Droids and Nexus Ones (Android 2.0.1 and 2.1) complain that their downloads do not work. Since I do not have a 2.0 phone, I tried it in the 2.0 emulator, and now it does not work. Download shows undetermined progress for a second or two, and then shows “Download failed”.
Depending on what I see in the logs, it is obvious that the server returns 404 for the download request from 2.0 browsers. I can download to my desktop and number 1.6 without problems. The only reason I can think that the server will return 404 for the request is because for some reason, credentials or cookies are not transmitted by the download process. Logcat shows: http error 404 to download x
Some prerequisites: I added the mime type to my .htaccess as follows: AddType / vnd.android.package-archive apk application
I checked the server logs and saw the following failed downloads: xx.xx.xx.224 - - [28 / Jan / 2010: 20: 39: 00 -0500] "GET / system / files / grandmajong-beta090.apk HTTP / 1.1" 404 - " http://trickybits.com/forums/beta-testing/grandma-jong/latest-version-090-b1 " Mozilla / 5.0 (Linux; U; Android 1.6; en-us; sdk Build / Donut) AppleWebKit /528.5 + (KHTML, e.g. Gecko) Version /3.1.2 Mobile Safari / 525.20.1 "
, , APK -. MIME, , . , , Android. , , Apache, .htaccess, /, .. , / , . .htaccess, . , -, APK. - drupal - , , , , .htaccess, .
, dropbox. , , APK, , , MIME .
drupal -/sites/default/files. Drupal ( node - ), . /sites/settings.php (http:///admin/settings/file-system), , .
MIME, apk, , .
apk? , Android . http://tordtech.blogspot.com/2009/10/signing-android-applications.html
2.0 + (Droid X), , , APK. : , Astro File Manager - .
, , .
, , - apk , (Opera ).
- , , !:)
:, 192.168.1.15. "" ( , ). Android , , , , , , . , Opera , , - - . , , - .
, Opera .
, , , , .