How to stop playing music or sound of other application

by Kevin Duffey » Sat, 30 Jan 2010 02:46:14 GMT

Sponsored Links
  understand what you are saying... although I am not sure how that applies
to whatever app you are working on. It is up to every developer to properly
stop threads, audio, etc whenever their app is put into pause mode, or shut
down. Period. If you are finding a game that continues to play music when
you take a phone call, write the developer and let them know for sure. They
didn't properly handle all aspects of their app being put on pause. Bad
design, not tested enough, or perhaps just not enough knowledge about all
the issues that need to be taken care of when something like that happens. I
am sure a developer would be happy to have feedback regarding that issue. I
know I would!

But, that said, I seriously doubt you can stop other audio. If a thread in
an app you don't control is playing music, that app would have to be
listening for some sort of intent/message that says "stop music" then act on
it. Seriously doubt any app is developed this way other than maybe specific
media/audio playing apps, even then I doubt they allow other apps to control
them with such capabilities.

On Fri, Jan 29, 2010 at 10:05 AM, Robert Nekic <>wrote:

> > > >

How to stop playing music or sound of other application

by Kevin Duffey » Sun, 31 Jan 2010 01:43:08 GMT

 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?


Sponsored Links

Other Threads

1. Changing drawing order while animating

Hi ,

Im trying to do a custom animation on two image views which are placed
one below the other (the object in the background is half visible and
half the size  compared to the object in the foreground ) . Now on
animation  , the visibilty and size of the images should be
swapped .i.e  the object in the foreground should now be my background
image  which should take the size and visibility of background
image .  How can we acheive this  ?


2. need help on "--core-library"


I need to build a java.beans.PropertyChangeListener which is part of
JDK (rt.jar) but not part of Dalvik.

Trying to copy the sources to my Application I get this:

Attempt to include a core VM class in something other than a core
It is likely that you have attempted to include the core library from
a desktop
virtual machine into an application, which will most assuredly not
work. If
you really intend to build a core library -- which is only appropriate
part of creating a full virtual machine binary, as opposed to
compiling an
application -- then use the "--core-library" option to suppress this
message. If you go ahead and use "--core-library" but are in fact
an application, then please be aware that your build will still fail
at some
point; you will simply be denied the pleasure of reading this helpful

My solution:
1) build a core library with consisting out of
2) integrate that library (jar?) into my application.

My question:
- how can I build a core library using eclipse?


3. Marquee Api demo

4. Cloud based apps

5. Will SyncML engine be available in Android?

6. How the file is updated when I modify a default app in the Android source code?

7. help please!