Reputation: 7577
I need the full name of a file (myFile.txt) and are looking at Title and Diaplay Name in MediaColumns. Can you tell me the difference between the two and when to use which?
Upvotes: 11
Views: 1926
Reputation: 15165
MediaStore.MediaColumns.TITLE
This is the title of the media file you want to play, for example Westlife - My Love
. Use it as the title of the media, i.e music title, video title, etc.
MediaStore.MediaColumns.DISPLAY_NAME
This is the full name of the file without its path, included its extension.
For example Westlife - My Love.mp3
For more information, see this reference.
Upvotes: 11