So Alam, are you building a voice dialing app.. where your app controls the
voice call.. you could record the audio of the chat, for example.. and
you're trying to silence other music from any other app playing? I mean,
you're talking about two apps.. one being a game (not yours) that a user
downloads and is playing.. and while playing, a call comes in. They hear the
game AND the caller on the other end. You want to know how to stop the game
music. I assume then that the 2nd app.. the one that handled the voice call
is YOUR app? Otherwise, I am guessing that you basically have a sort of
non-android programming question and are a normal user who has a game you
play that happens to keep playing music while a voice call comes in and you
want to know some way to stop the game music so your party on the other end
doesn't hear the music?


On Sat, Jan 30, 2010 at 6:38 AM, Alam <[email protected]> wrote:

> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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