Hi François R.,

 
Did you get any solution for this?

On Sunday, December 6, 2009 12:02:31 AM UTC+5:30, François R. wrote:

> Hi, 
>
> I would like to write some code creating automaticly some playlist for 
> the mp3 player. 
>
> I use 
>
> ContentValues values = new ContentValues(); 
> values.put(MediaStore.Audio.Playlists.NAME, nom); 
> return getContentResolver().insert 
> (MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, values); 
>
> to create my playlist and something alike for members. 
>
> It runs well but every time I mount the sd card, MediaScanner scans 
> again my mp3, erase all the members and let the playlist empty. When I 
> run the music player, the playlist are still there but when I chose 
> one of them, there is no more mp3 in it. 
>
> I can start my program to refill the playlists but I would like to 
> know why MediaScanner erase my members. Is there a better way to do or 
> a trick to avoid this ? I tried to read MediaScanner.java but i don't 
> see how... 
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to