Thanks for the tipp moneytoo, i will check that out.

Mark, is it allowed to use the method that moneytoo suggests?

is it at least possible to know whether some media is currently being
played? a isPlaying() method or something?

Thank you guys.

Alex.

On Dec 23, 3:26 pm, moneytoo <[email protected]> wrote:
> 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 theMediaplayerrunning 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
> >MediaPlayerbut 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