title: Content Resolver query returns empty cursor only on a Samsung Galaxy S4 running Lollipop
body: <p>I have this code and I've tested it on a few devices, works on them, except for a Samsung Galaxy S4 running Lollipop. The <code>getContentResolver().query()</code> method returns an empty cursor, every time. If the if/else statement goes to the else, because of that, and tries <code>insert</code> I get another null as the result of the <code>insert</code></p>
  
  <pre><code>        String mediaTitle = String.format("My Artist%s", title);
          ContentValues values = new ContentValues();
          values.put(MediaStore.MediaColumns.DATA, k.getAbsolutePath());
          values.put(MediaStore.MediaColumns.TITLE, mediaTitle);
          values.put(MediaStore.MediaColumns.SIZE, k.length());
          values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/ogg");
          values.put(MediaStore.Audio.Media.ARTIST, "My Artist");
          values.put(MediaStore.Audio.Media.IS_RINGTONE, false);
          values.put(MediaStore.Audio.Media.IS_NOTIFICATION, true);
          values.put(MediaStore.Audio.Media.IS_ALARM, false);
          values.put(MediaStore.Audio.Media.IS_MUSIC, false);
  
          Uri uri = MediaStore.Audio.Media.getContentUriForPath(k.getAbsolutePath());
          String selection = String.format("%s = ?", MediaStore.MediaColumns.TITLE);
          c = getContentResolver().query(uri, null, selection, new String[]{mediaTitle}, null); // RETURNS NULL only on Samsung Galaxy S4 with Lollipop
  
          if (c.moveToFirst()) {
              return uri.buildUpon().appendPath(String.valueOf(c.getInt(c.getColumnIndex(MediaStore.MediaColumns._ID)))).build();
          } else {
              return getContentResolver().insert(uri, values);
          }
  </code></pre>