What do you mean by 'would not work right'? Did you stick a break point in that if statement to check if the logic was getting fired?
Type: Posts; User: ChristopherLowe
What do you mean by 'would not work right'? Did you stick a break point in that if statement to check if the logic was getting fired?
You could use the PhoneStateListener to listen for when the call state goes from CALL_STATE_OFFHOOK to CALL_STATE_IDLE. I can see in your code an empty if statement (wasPlayingBeforePhoneCall) that...