[android-developers] Re: Hosting APKs files on site works for emulator, but not device?
Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see http://groups.google.com/group/android-developers/browse_thread/thread/b4fffb26e83d9653 for one example). Al. EboMike wrote: I'm currently hosting an app on my own server so my beta testers can test it. I've set up the apk MIME type to be application/ vnd.android.package-archive, and when I try to download the app from the emulator, it downloads the 53KB apk file and installs it. When I try to do the same thing from a real ADP1 device, it only loads 43KB. When I try to install it, the system says that I'm trying to install an app that already exists (called Android System) and that doesn't require any permissions, but nothing happens when I proceed. logcat tells me D/asset (16379): failed to open Zip archive '/ sdcard/download/[name of the app].apk' Bonus points! When I try to download the app from the emulator, I can see that in the accesslog of my server. Not so when I download it from the device, even after deleting /sdcard/download/* and clearing the cache through the settings. Almost as if the device was loading an old copy from a proxy server. I'm not sure which APN I'm using, but none of the T-Mobile APNs have a proxy AFAICS. Is there a way to circumvent the proxy, assuming that this is the case? And/or tell the proxy not to cache this apk file? -Mike -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hosting APKs files on site works for emulator, but not device?
Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it on an ADP1 and a G1, both on the T-Mobile network, and it didn't work. The emulator worked fine. The symptoms point to a proxy. On Mar 17, 2009 12:42 AM, Al Sutton a...@funkyandroid.com wrote: Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see http://groups.google.com/group/android-developers/browse_thread/thread/b4fffb26e83d9653 for one example). Al. EboMike wrote: I'm currently hosting an app on my own server so my beta testers can test it. I'... -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hosting APKs files on site works for emulator, but not device?
If you want to send me a link off list I'll see what I can find. Al. Michael Krehan wrote: Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it on an ADP1 and a G1, both on the T-Mobile network, and it didn't work. The emulator worked fine. The symptoms point to a proxy. On Mar 17, 2009 12:42 AM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see http://groups.google.com/group/android-developers/browse_thread/thread/b4fffb26e83d9653 for one example). Al. EboMike wrote: I'm currently hosting an app on my own server so my beta testers can test it. I'... -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hosting APKs files on site works for emulator, but not device?
I tried it again this morning and it works now. I guess T-Mobile keeps a cached file for 24 hours or so. At this point, I'm positive that the problem lies with T-Mobile: a) it works from within the emulator, b) I don't see a hit in the accesslog when I try to download it, c) it works after 24 hours. One thing I didn't try when the file was busted was to simply rename it or to add something like ?x=y at the end of the URL when downloading it. That should have solved it too. -Mike On Mar 17, 5:49 am, Jean-Baptiste Queru j...@android.com wrote: There is a transparent proxy on T-Mobile's port 80, which works at the IP level (so it doesn't need to be explicitly configured at the HTTP level, but also can't be bypassed). Does your apk download over wifi? Can you try serving it from a port other than 80? There's an open issuehttp://code.google.com/p/android/issues/detail?id=1085about situations where small apks (less than 64kB) sometimes cause problems, though we've never been able to quite get to the bottom of it. JBQ On Tue, Mar 17, 2009 at 1:36 AM, Al Sutton a...@funkyandroid.com wrote: If you want to send me a link off list I'll see what I can find. Al. Michael Krehan wrote: Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it on an ADP1 and a G1, both on the T-Mobile network, and it didn't work. The emulator worked fine. The symptoms point to a proxy. On Mar 17, 2009 12:42 AM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see http://groups.google.com/group/android-developers/browse_thread/threa... for one example). Al. EboMike wrote: I'm currently hosting an app on my own server so my beta testers can test it. I'... -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hosting APKs files on site works for emulator, but not device?
It'd be great if you could leave a note about your findings at http://code.google.com/p/android/issues/detail?id=1085 Thanks, JBQ On Tue, Mar 17, 2009 at 8:13 AM, EboMike ebom...@gmail.com wrote: I tried it again this morning and it works now. I guess T-Mobile keeps a cached file for 24 hours or so. At this point, I'm positive that the problem lies with T-Mobile: a) it works from within the emulator, b) I don't see a hit in the accesslog when I try to download it, c) it works after 24 hours. One thing I didn't try when the file was busted was to simply rename it or to add something like ?x=y at the end of the URL when downloading it. That should have solved it too. -Mike On Mar 17, 5:49 am, Jean-Baptiste Queru j...@android.com wrote: There is a transparent proxy on T-Mobile's port 80, which works at the IP level (so it doesn't need to be explicitly configured at the HTTP level, but also can't be bypassed). Does your apk download over wifi? Can you try serving it from a port other than 80? There's an open issuehttp://code.google.com/p/android/issues/detail?id=1085about situations where small apks (less than 64kB) sometimes cause problems, though we've never been able to quite get to the bottom of it. JBQ On Tue, Mar 17, 2009 at 1:36 AM, Al Sutton a...@funkyandroid.com wrote: If you want to send me a link off list I'll see what I can find. Al. Michael Krehan wrote: Al, thanks for the reply. It's on my own server (a Linux-based Apache server), and it's a simple A HREF that goes straight to the file in the same directory. No redirection or anything. I tried it on an ADP1 and a G1, both on the T-Mobile network, and it didn't work. The emulator worked fine. The symptoms point to a proxy. On Mar 17, 2009 12:42 AM, Al Sutton a...@funkyandroid.com mailto:a...@funkyandroid.com wrote: Does the URL you're downloading from use a redirect or something similar to get to the apk? Many free file hosting or website hosting packages use a loading page and some type of redirect (a Meta refresh tag being one example), and there have been problems with those on the device (see http://groups.google.com/group/android-developers/browse_thread/threa... for one example). Al. EboMike wrote: I'm currently hosting an app on my own server so my beta testers can test it. I'... -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---