Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Muting any audio which is currently playing.

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

The need is to mute or pause any song or radio playing on android device through an application.
My application basically pop ups the voice reminder on desired time.

So if I am listening some song and voice reminder pop ups. It should mute that song's sound and should play voice notification only.
No other audio should be running at that time.

I do play sometime with AudioManager it wrks little for me. Because it also mutes my voice notification also.

What I did so far is ...



Can anyone tell me where I am going wrong?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!