Public String GetType (URI) used to return the MIME type of data in the specified Uri
* If the manipulated data belongs to the collection type, then the MIME type string should start with vnd.android.cursor.dir/.
For example: To get the URI for all person Records is Content://contacts/person, the MIME type string returned is "Vnd.android.cursor.dir/person".
* If the data to be manipulated belongs to non-collection type data, then the MIME type string should start with vnd.android.cursor.item/.
For example: To get the URI for the person record with ID 10 as CONTENT://CONTACTS/PERSON/10, the MIME type string returned should be "Vnd.android.cursor.item/person"
@Override public String getType (Uri uri) { newnull Null); if (Textutils.isempty (Args.where)) { return "vnd.android.cursor.dir/" + args.table; Else { return "vnd.android.cursor.item/" + args.table; } }
GetType (Uri UiR) in Android ContentProvider