title: Android: Stopping Cursor from retrieving empty playlists and genres
body: <p>I am currently using a <code>CursorAdapter</code> in conjunction with a <code>LoaderCusor</code> in order to retrieve all songs, playlists, albums, artists and genres from my device. </p>
  
  <p>Everything is working fine except from my genre and playlists <code>Cursor</code>'s. The problem is that the cursor is retrieving both genres and playlists that are completely empty. Now in order to resolve this I attempted the following: </p>
  
  <pre><code>final String[] columns = 
              {
                  MediaStore.Audio.Genres._ID,
                  MediaStore.Audio.Genres.NAME,                   
              };            
  
          String where = BaseColumns._COUNT + "!=?";
          String[] whereVal = {0+""};                        
  
          return new CursorLoader(getActivity(),
                  MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, 
                  columns, 
                  where, 
                  whereVal,
                  null);   
  </code></pre>
  
  <p>and similarly for playlists. However this constantly throws an error telling me that the _count column does not exist for neither the playlists nor the genres. I also that the error if I try and use <code>MediaStore.Audio.Genres._COUNT</code>.</p>
  
  <p>With this in mind, is there any way to prevent the <code>CursorLoader</code> from retrieving empty playlists and genres? Thanks :)</p>