-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
  • 151,199
  • 17
  • 111
  • 216
Matheus Ariel
  • 95
  • 1
  • 1
  • 9

1 Answers1

1

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

TelephonyManager.CALL_STATE_RINGING