How to change Android proximity sensor sensitivity?
I coded an app based on proximity sensor , but I would like to be able to give users the ability to change the sensitivity of the sensor. Is it possible? If yes how to do it? Just "implements SensorEventListener" and follow the code : public void onCallStateChanged(int state, String incomingNumber) { switch (state) { case TelephonyManager.CALL_STATE_IDLE: System.out.println("My Call IDLE"); CallState = false; StartAudioSpeacker(); System.out.println("Is phone speaker : "+ audioManager.isSpeakerphoneOn()); if (audioManager.isSpeakerphoneOn()) { audioManager.setSpeakerphoneOn(false);