-3

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

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Matheus Ariel
  • 105
  • 1
  • 1
  • 9

1 Answers1

1

You need look at TelephoneManager. And put listener on state changed.

TelephonyManager.CALL_STATE_RINGING