I have an app that downloads songs from a web service and stores them
on the external storage. After each file is written I run scanFile()
from MediaScannerConnection, which from what I can cull from the
documentation and other sources should add the file and its metadata
to the proper ContentProvider. So, when you open the "music" app the
songs that my app downloaded appear in the library.

Here's the problem: For some reason only 1 song ever shows up in the
library. I have verified that the files exist on the external storage
and are not corrupt. No exceptions are thrown but I do see this in
LogCat:

02-15 10:38:06.022: WARN/MediaScanner(3852): integer is not 4 bytes
02-15 10:38:06.280: ERROR/MediaScanner(3852): u_strToUTF8 errorcode:
U_INVALID_CHAR_FOUND

Which implies that perhaps the metadata (ID3) has bad data in it?

Has anyone done this before? Saving downloaded mp3s and adding them to
the library so they can be played by the native music player?

-- 
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