title: Retrieve ONLY dowloaded songs from internal storage to make MP3 player in Android Studio
body: <p>This is my code. As you can see I retrieve the songs from the internal storage      but in the MP3 player shows all the other "default" music the device has.
      Any help is appreciated.</p>
  
  <pre><code>public void getSongList() {
  
      ContentResolver musicResolver = getContentResolver();
  
  
      Uri musicUri = MediaStore.Audio.Media.INTERNAL_CONTENT_URI;
  
      Cursor musicCursor = musicResolver.query(musicUri, null, null, null, null);
  
      if (musicCursor!=null &amp;&amp; musicCursor.moveToFirst()){
          //get columns
          int titleColumn = musicCursor.getColumnIndex(MediaStore.Audio.Media.TITLE);
          int idColumn = musicCursor.getColumnIndex(MediaStore.Audio.Media._ID);
          int artistColumn = musicCursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);
          //add songs to list
  
          do {
              long thisId = musicCursor.getLong(idColumn);
              String thisTitle = musicCursor.getString(titleColumn);
              String thisArtist = musicCursor.getString(artistColumn);
              songList.add(new Song(thisId, thisTitle, thisArtist));
          }
          while (musicCursor.moveToNext());
      }
  }
  </code></pre>