您的位置:首页 > 移动开发 > Android开发

Android中关于ContentProvider类的getType()方法的理解

2015-08-27 20:05 453 查看
http://stackoverflow.com/questions/12297527/android-contentprovider-gettype-called-when-and-why

http://an-droid.diandian.com/post/2011-10-08/5638131

getType(Uri
uri)
will usually only be called after a call to
ContentResolver#getType(Uri
uri)
. It is used by applications (either other third-party applications, if your
ContentProvider
has
been exported, or your own) to retrieve the MIME type of the given content URL. If your app isn't concerned with the data's MIME type, it's perfectly fine to simply have the method
return
null
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: