title: Get Music files details only
body: <p>Basically I am trying to get the details of a music file inside an android device (Ex. The music's title, artist, etc) and store them to a <code>list&lt;&gt;</code>. <br>(<code>SongData</code> contains the list, and it contains a list of <code>Song</code> object.)</p>
  
  <pre><code>public void PopulateSongList(Context context) {
          SongData songData = new SongData();
          Android.Net.Uri musicUri = Android.Provider.MediaStore.Audio.Media.ExternalContentUri;
          //Used to query the media files.
          ICursor musicCursor = context.ContentResolver.Query(musicUri, null, null, null, null);
  
          if (musicCursor != null &amp;&amp; musicCursor.MoveToFirst())
          {
              int songID = 0;
  
              //get columns.
              int songTitleColumn = musicCursor.GetColumnIndex("title");
              int songArtistColumn = musicCursor.GetColumnIndex("artist");
  
              //add songs to list
              do
              {
                  String songTitle = musicCursor.GetString(songTitleColumn);
                  //Tried, but file name does not contain file extension.
                  if (songTitle.ToLower().Contains(".mp4") || songTitle.ToLower().Contains(".m4a"))
                  {
                      String songArtist = musicCursor.GetString(songArtistColumn);
                      songData.AddNewSong(new Song(++songID, songTitle, songArtist, null));
                  }
              }
              while (musicCursor.MoveToNext());
          }
      }
  </code></pre>
  
  <p>The code works well but however in the <code>do..while</code> loop, <code>songTitle</code> also contains other files that are not music files as well. <br>
  I tried checking for file extensions but it does not work, and after using the debugger again, the file name given does not contain the file extension.</p>
  
  <p>So how do I make sure that it only grabs details from a music file, and not other kind of files?<br>
  (Also, I want to grab the name of the artist of a music file, but apparently <code>int songArtistColumn = musicCursor.GetColumnIndex("artist");</code> does not seem to work.)</p>
  
  <p>Finally, how do I get the image of a music file? (The song image).</p>