easy. just set up an projection with the info you want

   Uri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
    mProjection  = new String[] {
        android.provider.MediaStore.Audio.Media._ID,
        android.provider.MediaStore.Audio.Media.TITLE,
        android.provider.MediaStore.Audio.Media.DATA,
        android.provider.MediaStore.Audio.Media.ARTIST,
        android.provider.MediaStore.Audio.Media.ALBUM,
        };
.. then query the mediastore provider
            Cursor mCursor = managedQuery(
                mUri,
                mProjection, //Which columns to return.
                null,       // WHERE clause--we won't specify.
                null); // Order-by clause.

and you're done.
i guess you have to run mediascanner before, though.


On May 30, 12:50 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
> gopal wrote:
> > How to know the id or tag of the album name,movie name,artist
> > name,etc.in the mp3 files in the emulator?
>
> You need to find some Java code that knows how to read metadata out of
> MP3 files, such ashttp://www.fightingquaker.com/myid3/
>
> Note: I've never used the code to which I've linked. It's merely the
> first hit out of a Google search on: java mp3 metadata
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> An droid Training on the Ranch in September!http://www.bignerdranch.com
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to