title: Android disable proximity sensor during phone call
body: <p>I have an app that places a phone call and then switches back to my activity while the phone call is happening.  The problem is, if the user puts their hand near the proximity sensor, then the screen turns off.  Is there a way to disable the proximity sensor from turning off the phone when in a phone call?</p>
  
  <p>I have tried using a <code>PROXIMITY_SCREEN_OFF_WAKE_LOCK</code> and <code>FULL_WAKE_LOCK</code>; I have tried using Window flags <code>(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD)</code>; and I have tried using <code>myView.setKeepScreenOn(true)</code>.  All have been unsuccessful so far.</p>
  
  <p>Also, I have a listener for <code>ACTION_SCREEN_OFF</code> and <code>ACTION_SCREEN_ON</code> so if the user presses the power button for whatever reason, then it will end the call.</p>