Thanks Mark,

On Aug 28, 10:03 pm, "Mark Murphy" <[EMAIL PROTECTED]> wrote:
> >   i am new to android and i am trying to extract the metadata of the
> > mp3 file i have writtten piece of the code as per the follows but its
> > giving the tuntime error in the setDataSource so can anyone let me
> > know what could be the problem.
>
> > the code is follow:
>
> >         nMetaDataDetails = new MediaMetadataRetriever();
>
> >         path = "D:\\Songs\\a13033b03.mp3";
>
> >         nMetaDataDetails.setMode(MODE_GET_METADATA_ONLY);
>
> >         nMetaDataDetails.setDataSource("D:\\Songs\\nagada.mp3");
>
> >         nMetaDataDetails.extractMetadata(MODE_GET_METADATA_ONLY);
>
> Android devices do not have D: drives.
>
> You need to get the MP3 file onto the device, then attempt to read the
> metadata.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.1 Published!- Hide 
> quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to