I am working on an app that is required to vibrate when an incoming phone call comes. I detected incoming call using PhoneEvents_PhoneStateChanged function, checking it's STATE=RINGING. I can vibrate the device with PhoneVibrate as well. But I want to make sure I don't vibrate on an incoming call if the user is already on a phone call.
So my question is how to detect if a phone call is already in progress. I see a java code in the stackoverflow post below but it is from 2011. I hope it still works. Could you please translate it to B4A?
https://stackoverflow.com/questions/7766434/android-api-to-check-if-call-is-active-or-on-hold
So my question is how to detect if a phone call is already in progress. I see a java code in the stackoverflow post below but it is from 2011. I hope it still works. Could you please translate it to B4A?
https://stackoverflow.com/questions/7766434/android-api-to-check-if-call-is-active-or-on-hold