Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:06:58+00:00 2026-06-07T13:06:58+00:00

In my application, when I start my audio call/audio broadcast I have request the

  • 0

In my application, when I start my audio call/audio broadcast I have request the audio manager for audio focus.

audioManager.requestAudioFocus(null,audioManager.STREAM_VOICE_CALL, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT| AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK);

If the user presses Home and navigates to another media application, and then if they play any media, that file is also played at low volume. The person receiving the call can also hear that media sound file.

When my audio call is in progress, if the user tries to play any audio resources, how do I tell the audio manager to give the preference to my application only?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:07:00+00:00Added an answer on June 7, 2026 at 1:07 pm

    What you’re describing is the default behavior on Android (I believe). That being said, you should be able to do what you’re hoping. The Android SDK allows you to set a single stream type as solo – causing all other streams to be muted. To do this, you should use the AudioManager setStreamSolo()call:

    audioManager.setStreamSolo(AudioManager.STREAM_VOICE_CALL, true);

    You’ll want to do this when playback begins, then set the stream solo to false when playback ends or your Activity finishes. Let me know if that does the trick.

    Couple of resources that might be helpful:

    • Related SO post: Android – can I mute currently playing audio applications?
    • Android Developer docs: Listening for audio focus change
    • Another SO post: Android: Detect another application has started playing audio
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can we have the bluetooth discoverable status on application start I have an
I have in my application many bitmaps. They are loaded when application start. In
I have an application that will record and play audio files. Some of the
I have a Java application whose UI relies heavily on audio. On Windows and
I have a c#/winforms application that uses directx to play some video and audio.
I have a WPF audio application. Occasionally (and even in the debugger) I'm seeing
I am writing an audio recording application for WP7. I have a DispatcherTimer object
I have created Player object as player = Manager.createPlayer(inputStream,audio/mpeg); and plays the audio as
I have devlope application in which i can record audio and store it in
On application start I'm creating Config object (Singleton). How could I make Config object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.