In addition to the other comments -- if you just need to make the
media quiet -- you can temporarily turn the volume down for the
AudioManager.STREAM_MUSIC audio stream type. See
AudioManager.setVolumeStream().

This won't stop playback, but at least it will be silent playback.

On Jan 28, 8:22 am, Alam <[email protected]> wrote:
> Hi,
>
> I want to know that can we stop playing sound or music of other
> application which actually plays the music from our application?
>
> Something like get the handle of MusicPlayer or AudioManager in our
> application and using this handle stop the currently playing sound.
>
> Please share some information on this.
>
> Regards
> Alam

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