vicky
vicky

Reputation: 1046

Where does downloaded files stored in android

Where does downloaded files stored in android when there is no memory card and how to access it from my application?

Upvotes: 0

Views: 3314

Answers (2)

Akhil
Akhil

Reputation: 14058

They are stored in device's internal storage, if you haven't chosen to store it in the sd-card. Internal storage make use of linux file system permissions, so files will private to your application and other applications cannot access them.

If you are talking about media files, you can make them accessible everywhere by adding them in their respective content providers.

To open a file use openFileOutput() which return a file stream.

Upvotes: 2

Ben Weiss
Ben Weiss

Reputation: 17970

You should read the article on Storage Options which also provides a code example for accessing the external storage.

Upvotes: 1

Related Questions