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?
Generally a name refers to a specific thing (distinctive name), and a title refers to a thing that fulfills a requirement or a role (descriptive name). There is some overlap in meaning, especially when used of books and songs.
A formal appellation attached to the name of a person as a sign of office, rank, profession, or hereditary privilege. b. A descriptive name; an epithet: the dubious title of the worst bowler in the league.
The DISPLAY name is actually the page heading. This is your <h1> or heading tag, and is the main header for your web page. It will usually be the largest text at the top of the page. There are other header tags in HTML too, like an h2, h3, h4, etc.
To change the Display Name on an item:Select the item in the Content Editor inside the content tree. Click “Display name” in the Rename section Home tab ribbon. Give your item a new Display Name name and click OK.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With