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
.