Chosen Solution
I just replaced the screen on my iPhone 3GS and now when I make calls, my phone stays active during the call. When this happens and it is against my face, I accidentally push the different options such as mute, speaker phone, and sometimes the end button. Is there something I did wrong or a way to correct this problem? Please help. Thanks.
Your proximity sensor isn’t working; this is cable #3. Open the phone back up and try disconnecting and reconnecting that cable; if that doesn’t fix it, you will need to find another somewhere. (They’re usually sold as part of the front panel.)