1. Check out our companion app, Forums for Android! Download from Google Play

Mute Phone in App

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

  1. CopyPaste

    CopyPaste New Member
    Thread Starter
    5

    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 New Member
    Thread Starter
    5

    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 New Member
    5

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