Well first of all thanks to everyone for their posts. Its seems that I'd confused some of them. Let me first clear this.Suppose you have downloaded some game (*.apk) from Android Market. Now you are playing the game with its music on and in between you got some call which probably you picked up. During the talk you figure out that music of that game is still playing. So that time you are actually hearing two sound, one the other end party voice and second the music of that game which seems to be in paused state.
Bob, as you stated about AudioManager.setVolumeStream(), I guess it may work. I've not yet tried but surely I'll try this method. I request the member if they have any more information on this please share their experience Regards Alam On Jan 30, 12:01 pm, Bob Kerns <[email protected]> wrote: > 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- Hide quoted text - > > - Show quoted text - -- 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

