1. Download our Official Android App: Forums for Android!

Apps Mute Phone in App

Discussion in 'Android Development' started by CopyPaste, Feb 16, 2010.

  1. CopyPaste

    CopyPaste Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Feb 16, 2010

    Feb 16, 2010
    2
    0
    5
    Hey Guys,

    New to the forums, I have a quick question. I am attempting to mute the phone call in progress from my application.

    I have tried all the following:

    this.setVolumeControlStream(mAudioManager.STREAM_VOICE_CALL);
    mAudioManager.setMicrophoneMute(true);
    mAudioManager.setStreamMute(0, true);
    mAudioManager.setStreamVolume(0, 0, 0);

    but none seem to work. I have the active call going on and the call stays unmuted. Does anyone have any ideas?

    Thanks! :thinking:
     

    Advertisement

  2. CopyPaste

    CopyPaste Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Feb 16, 2010

    Feb 16, 2010
    2
    0
    5
    Really nothing? Is what I am trying to do impossible since the call is in progress?
     
  3. Grenex

    Grenex Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 15, 2011

    Jun 15, 2011
    1
    0
    5
    Did you ever get this working?
    What app were you creating? I am looking for an app that will mute the microphone of a call currently in process when you flip the phone over (instead of unlocking the phone, and hunting for the mute button)
     

Share This Page

Loading...