Saturday, August 6, 2011

[android-developers] What are the filesize limitation imposed by DownloadManager

The maximum value seems to be  defined at ./packages/providers/DownloadProvider/src/com/android/providers/downloads/StorageManager.java

 

/** the max amount of space allowed to be taken up by the downloads data dir */

    private static final long sMaxdownloadDataDirSize =

            Resources.getSystem().getInteger(R.integer.config_downloadDataDirSize) * 1024 * 1024;

The config value is defined as 100 elsewhere. So if download is larger than 100MB, the request will abort, no progress shows in Download Manager, and it stuck there for ever. Is this expected behaviour ?


So - what are the max filesize that be downloaded by the DownloadManager at the following locations

- sdcard

- /cache (assuming the apk has right permissions to do so)

- /data/data/com.android.provider.download/cache


Also - if there any limitation on how big the /data/data/com.myapp.tester size can get ?


-Dan

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment