Kotlin - adding phone state listener to intent. Android Studio
I'm trying to develop simple app that will read outgoing call state ( if it's ringing, off hook and idle). So far I have successfully implement calling within my app using Indent and I do have all required permissions. Moreover I have found out how to verify call state of outgoing call. But the problem is that i can verify it only at the beginning of call. I don't know how to implement onStateChange listener event for my call. If any1 knows how to do it in a simpliest way please let me know -...