I am able to display song tile fetched from local sd card.The issue is when i see the songs list of mine and default music player, i found that song name has trimed if there is some extra string(string could be third -party site or movie name.).how can i achieve it.?
tempCursor = ((Activity)context).managedQuery(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, null, null,MediaStore.Audio.Media.DISPLAY_NAME);
tempCursor.moveToFirst();
ArrayList<Song> list = new ArrayList<Song>();
for (int i = 0; i < tempCursor.getCount(); i++) {
id = temp Cursor.getString(tempCursor.getColumnIndexOrThrow(MediaStore.Audio.Media._ID));
artist = temp Cursor.getString(tempCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ARTIST));
name = temp Cursor.getString(tempCursor.getColumnIndex(MediaStore.Audio.Media.DISPLAY_NAME));
data = temp Cursor.getString(tempCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DATA));
albumName = temp Cursor.getString(tempCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM));
albumId = temp Cursor.getString(tempCursor.getColumnIndexOrThrow(MediaStore.Audio.Media.ALBUM_ID));
Notice the difference in the song titles:

Rewrite
Thanks for the screenshots I see the problem, simply change this:
to this:
Addition from comments
I cannot see what songs don’t have Titles so I’ll offer this:
I am unable to re-create what you describe and don’t have much information to work with, hope this works.