Standard Android Music Player

by Nick Mitin » Tue, 09 Feb 2010 01:41:56 GMT


Sponsored Links
 Is there any way to pass a file or a playlist to a standard Android
Music Player? I guess almost all applications, for instance, i Music
do it.

--



Standard Android Music Player

by Sean Hodges » Tue, 09 Feb 2010 16:52:59 GMT


 Accroding to a comment in the OpenIntents site
( http://www.openintents.org/en/node/112 ), this should work:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse("file:///sdcard/song.mp3");
String type = "audio/mp3";
intent.setDataAndType(data, type);
startActivity(intent);

Haven't tested it though.




>


Sponsored Links


Other Threads

1. mediaController in APIDemo

Hi
I am using the code of APIDemo for streaming video.

I want to add control bar to the videoview.

I added the following code to the MediaPlayerDemo_Video.oncreate but
the control was not shown:

mPreview = (VideoView) findViewById(R.id.surface);
        MediaController mediaController = new
MediaController(mPreview.getContext());
                mediaController.setAnchorView(mPreview);
                mediaController.setMediaPlayer(mPreview);
                mPreview.setMediaController(mediaController);

any idea why?
thanks

Zohar

-- 

2. Need to get videoframes on android

Hi,
I need to get video frames and the frame rate of the videos stored on
the sdcard. I need to supply these frames and the framerate to the UI
to do further processing.
Is there any way to get video frames from the application??..

One possible way to get the video frames would be to add my own API to
the decoder/Mediaplayer service to extract the frames. But I would
have to expose this API in all the layers till the framework.
Can any one suggest me a better approach.??

Thanks in advance...

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. limit the number of image to one for each swipe in android gallery

4. How to start an activity from a service

5. Android 3.0 64-bit system host required?

6. The ultimate, killer Android Marketplace replacement

7. map not api visible