@ Josh - I ran a bunch more tests from my house, where we get a weaker signal. And found that, indeed, sometimes we don’t get the “ended” callback from the API. I did make sure the device didn’t sleep (with setIdleTimer()). Also, I didn’t hit the home button, power button, or anything else that could have caused the device to become suspended. I confirmed through our logging that the app at no point went into suspend.
Here is an abbreviated (and somewhat masked) trace from our log of the responses we got from network.download().
Basically, it looks like we just all of a sudden stopped getting callbacks before the file download is complete (the total file size should be 1771520). Is it possible that, due to the bad reception, we get some dropped packets. But rather than getting an error, we are just not getting anything?
We are running Android 2.2.1 and the latest build 2013.1094. Please let me know if there is more information I can provide to help with this.
I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() isError: falsephase: began url: http://foobar.com/trains\_citytrain.tar response: nil I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() bytesTransferred: 0 bytesEstimated: -1 I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() isError: falsephase: progress url: http://foobar.com/trains\_citytrain.tar response: nil I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() bytesTransferred: 1024 bytesEstimated: -1 I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() isError: falsephase: progress url: http://foobar.com/trains\_citytrain.tar response: nil I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() bytesTransferred: 3500 bytesEstimated: -1 I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() isError: falsephase: progress url: http://foobar.com/trains\_citytrain.tar response: nil I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() bytesTransferred: 14261 bytesEstimated: -1 D/dalvikvm(10034): GC\_FOR\_MALLOC freed 4022 objects / 163384 bytes in 64ms \<... a lot more of the same .. \> I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() isError: falsephase: progress url: http://foobar.com/trains\_citytrain.tar response: nil I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() bytesTransferred: 1231274 bytesEstimated: -1 I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() isError: falsephase: progress url: http://foobar.com/trains\_citytrain.tar response: nil I/Corona ( 9440): DEBUG: serverUtil.performFileDownloadResponse() bytesTransferred: 1248023 bytesEstimated: -1