You can broadcast intents to control the Android/HTC media player.
Check MediaPlaybackService.java source.

On Dec 23, 1:43 pm, Alex Corbi <[email protected]> wrote:
> Hi google devs,
>
> This should be easy, but i haven't found anything yet....
>
> I want to get a reference to the Mediaplayer running currently on the
> device, so my app can pause it, execute its code and then resume it
> again. The class that plays the music and the videos is of course
> MediaPlayer but i don't want to create a new one, but to control the
> one its running when my app needs to do its job.
>
> Of course it should be possible that no song or video is currently
> being played so there should be a isplaying() method somewhere...
>
> Any clues how to make that?
>
> Thanks in advances..
>
> Alex

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