This is 47 MB! Here's what the Samsung Galaxy S says:
D/DownloadManager( 2973): download aborted - not enough free space in internal storage D/vending ( 6634): [174] DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Got a download completed intent. I/vending ( 6634): [174] DownloadManagerBroadcastReceiver.startNextDownload(): Found Paused URI null I/vending ( 6634): [174] DownloadManagerBroadcastReceiver.startNextDownload(): No more paused downloads. I/vending ( 6634): [174] DownloadManagerBroadcastReceiver.getDownloadStatus(): Unexpected status from download - 498 W/vending ( 6634): [174] DownloadManagerBroadcastReceiver.handleDownloadCompletedAction(): Couldn't find pathname for completed download URI : content:
Not enough internal storage space, no wonder.
What is your installation kit installed in? Should be preferred to External (see http://developer.android.com/guide/topics/manifest/manifest-element.html#install )
ADD AFTER
Huh boy it sucks ...
You can view the source code for the Android download manager here: http://www.google.com/codesearch/p?hl=en#UMpkw0xvvPU/src/com/android/providers/downloads/Helpers.java
By extrapolating the bit, you can do what it does to find out how much space is left in the download cache directory:
File base = Environment.getDownloadCacheDirectory(); long bytesAvailable = getAvailableBytes(base); public static long getAvailableBytes(File root) { StatFs stat = new StatFs(root.getPath());
Only 30 MB is available in my Samsung Galaxy S cache, so that's the problem. However, the total internal storage of the phone is huge ... I have at least 1.5 GB of free space.
Obviously, there is some policy to limit the load cache at work. Very annoying for you.
Free bytes in / cache for multiple phones
Samsung Galaxy S: 30756KB
Nexus One: 94352KB
San Francisco Orange: 38988KB
Reuben scratton
source share