简体   繁体   中英

Where does downloaded files stored in android

没有存储卡时,下载的文件存储在android的哪里?如何从我的应用程序访问它?

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.

您应该阅读有关存储选项的文章,该文章还提供了用于访问外部存储的代码示例。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM