I have succesfully added an audio file to the media provider. However,
I can't see it neither from "artists", "Albums" or "Songs from the
audio player". I can see and play it from the "recently added"
playlist. The album and artist tags are correct there.

To solve it I tryed to add a corresponding artist to the media
provider:

---------------------------------------------------------------------------------------------
...
import android.provider.MediaStore.Audio.Artists;
...
ContentResolver contentResolver = mContext.getContentResolver();
ContentValues values = new ContentValues(1);
values.put(Artists.ARTIST, "test");
Uri urialbum = contentResolver.insert(Artists.INTERNAL_CONTENT_URI,
values);
-----------------------------------------------------------------------------------------------

Unfortunatly it result in "java.lang.UnsupportedOperationException:
Invalid URI content://media/internal/audio/artists".

What is wrong here? Is it the correct way to solve my problem?
Thanks
Jérôme

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to