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
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
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
ContentProviderhas
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.
相关文章推荐
- Android的启动模式(下)
- android 休眠唤醒机制分析(二)
- android 休眠唤醒机制分析(一)
- Android开发中Activity跳转动画以及finish动画
- 关于android客户端的导航栏(toolbar)
- Android菜单
- Android的启动模式(上)
- android学习——MeasureSpec介绍及使用
- Android虚拟机启用中文输入法及其它常用配置
- Android常用控件之GridView的蒙板用处和写法
- Android中AlertDialog的使用
- Android如何自定义Toast?and 四种AleterDialog的用法
- android之使用get和post方式向服务器提交请求
- Android常用控件之Toast与AlertDialog的常规用法和自定义用法
- Android Studio导入aidl
- VMware安装Android虚拟机及adb调试
- 在Android应用中添加背景音乐
- Android中Activity启动模式详解
- Android TextView 给文本中指定片段添加自定义点击事件
- Android Fragment 切换时布局重叠