content provider其中操做文件的函數

此類函數仍是有殺傷力的android


一、openAssetFile(Uri uri, String mode)
This is like openFile(Uri, String), but can be implemented by providers that need to be able to return sub-sections of files, often assets inside of their .apk.web

二、openFile(Uri uri, String mode)
Override this to handle requests to open a file blob.ide

三、openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts)
Called by a client to open a read-only stream containing data of a particular MIME type.函數


http://www.grokkingandroid.com/handling-binary-data-with-contentproviders/this

http://www.techjini.com/blog/android-tip-1-contentprovider-accessing-local-file-system-from-webview-showing-image-in-webview-using-content/blog

相關文章
相關標籤/搜索