my application records voice, but I wonder if there is a function (either way) to identify when the phone rings? So I can stop giving the audio recording
Asked
Active
Viewed 106 times
-3
-
http://stackoverflow.com/a/15564021/2564847 – Robin Dijkhof Jul 21 '16 at 12:24
1 Answers
1
You need look at TelephoneManager. And put listener on state changed.
TelephonyManager.CALL_STATE_RINGING

Stanislav Parkhomenko
- 499
- 5
- 18