title: Insert audio album in Android MediaStore
body: <p>I can't find any information about how to insert an album in MediaStore, I tried using </p>
  
  <pre><code>Uri uri = contentResolver.insert(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, albumValues);
  </code></pre>
  
  <p>but I get an exception saying <code>Invalid uri</code>. This uri works fine for retrieving the albums but I can't use it to insert one.</p>
  
  <p>Here it is the rest of the code:</p>
  
  <pre><code>ContentResolver contentResolver = getActivity().getContentResolver();
  ContentValues albumValues = new ContentValues();
  albumValues.put(Audio.Albums.ALBUM, mAlbumEditText.getText().toString());
  albumValues.put(Audio.Albums.ARTIST, mArtistEditText.getText().toString());
  int trackNo = 10;
  albumValues.put(Audio.Albums.NUMBER_OF_SONGS, trackNo);
  Uri uri = contentResolver.insert(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, albumValues);
  </code></pre>
  
  <p>Error log:
       <code>02-24 22:38:19.876: E/AndroidRuntime(5379): java.lang.UnsupportedOperationException: Invalid URI content://media/external/audio/albums</code></p>