What is the difference between title and display name Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of What is the difference between title and display name without wasting too much if your time.

The question is published on by Tutorial Guruji team.

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?

Answer

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.

We are here to answer your question about What is the difference between title and display name - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji