开发者

Content provider, where are files stored?

The documentation says "However, if you have a large amount of binary data to add, such as a photograph or a complete song, put a content: URI for the data in the table and call ContentResolver.openOutputStream() with the file's URI. (That causes the conten开发者_如何学Ct provider to store the data in a file and record the file path in a hidden field of the record.)".

Is the file stored on internal or external storage? Also does the content provider manage the life of the file, i.e. gets destroyed when the record is deleted?


Im pretty sure the file does not get deleted by the content provider, you will need to dispose of it your self. As far as where it is stored - its within the phones content provider. You can query it to retrieve your data once its stored. See this link.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜