Android中關於ContentProvider類的getType()方法的理解

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.

發佈了45 篇原創文章 · 獲贊 2 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章