[android-developers] Re: More MediaPlayer questions

2008-12-18 Thread Rajendrakumar C
HI, Can anyone of you know how to extract the comosers info from Mp3 file. Please let me know if you know that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: More MediaPlayer questions

2008-12-18 Thread Xavier Mathews
Don't hijack the post create your own. On 12/18/2008, Rajendrakumar C rajendran.b...@gmail.com wrote: HI, Can anyone of you know how to extract the comosers info from Mp3 file. Please let me know if you know that. -- Xavier A. Mathews Student/Browser

[android-developers] Re: More MediaPlayer questions

2008-12-17 Thread kavith...@gmail.com
Hii Greg, How to create a url to raw via android:resource://package/raw/name as you have said? as setDataSource(url) is not working i copied a file to local path and tried passing that path to setDataSource(path),even that gives error Please tell me how to copy file directly to raw from url.

[android-developers] Re: More MediaPlayer questions

2008-12-17 Thread Dave Sparks
The media server does not have access to your application's data directory for security reasons. If you want the media server to play a file in your data directory, you need to open the file in your app and use the setDataSource(fd) method to pass open file descriptor to media player.

[android-developers] Re: More MediaPlayer questions

2008-12-11 Thread Greg
Thanks for the info Dave (especially getting call for the raw file descriptor!). Allow me to help you grok the fullness of this (wonder how many people have actually read that book these days) :) My app actually runs in foreground and background (via service) for doing some exercise tracking.

[android-developers] Re: More MediaPlayer questions

2008-12-11 Thread Dave Sparks
I'm beginning to grok the fullness... :) You could use the ALARM stream, though the user might have silenced alarms and then nothing will be heard. We are adding the ability to send events to the music player to tell it to play, pause, skip, etc. to support AVRCP. This will come in a release in

[android-developers] Re: More MediaPlayer questions

2008-12-10 Thread Dave Sparks
You want some code like this to play from raw resources: AssetFileDescriptor afd = getResources().openRawResourceFd (R.raw.test); if (afd != null) { mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); } else { throw new IOException(Unable to open test file);