While the phone is ringing, how do I keep the screen off. Here is my code so far.
public void onCallStateChanged(int state, String incomingNumber) {
switch (state) {
case TelephonyManager.CALL_STATE_RINGING:
break;
}
}