AT the end of the developer guide, they have described vnd.android.cursor.dir to be the type part of every custom MIME type, for multiple rows; and vnd.android.cursor.item for a single row.
Then there is an example of a Content Provider that contains train timetables. It's authority is com.example.trains and it has tables Line1, Line2, and Line3. And for it's content URI
content://com.example.trains/Line2/5
which is obviously pointing to the "5th row in the Line2 table", the MIME type returned will be:
vnd.android.cursor.item/vnd.example.line2
which does not indicate which row it is.
QUESTIONS:
I think it should be something like:
vnd.android.cursor.item/vnd.example.line2.5because the
typepart does describe that it is the MIME type for a particular row, so the subtype should also describe which row it is. Isn't it?If
vnd.android.cursor.item/vnd.example.line2is correct, then that means it does not matter if the MIME type is of a particular row. Does it mean all the rows in a table have the same MIME type? Because a MIME type is simply the type of files on the internet. (Reference) So I think since all the rows have the same "types" of data (or in other words the rows in a table are kinda instances of the same thing) - so I think all rows in a table should inherently have the same MIME type?If ^ is YES, then what is the point of having the categorization into the
vnd.android.cursor.dirandvnd.android.cursor.item?