Talespin_Kit
Talespin_Kit

Reputation: 21877

Where does the metadata about downloaded files get stored?

An app named Downloads is present in the GINGERBREAD version of Android. It lists the files downloaded. Where are these files stored and are there any standard APIs to access the downloaded files?

Upvotes: 1

Views: 603

Answers (1)

ethan
ethan

Reputation: 790

os.Environment has a method called getDownloadCacheDirectory() You can get a list of all the files in this directory as follows:

 File downloadFolder = Environment.getDownloadCacheDirectory();
 File[] downloadFiles = downloadFolder.listFiles(); 

Documentation from the Android developers site.

Upvotes: 1

Related Questions