In Android, I currently use onCallStateChanged to detect any changes in the state of a phone. However, I would like to know what the state of the phone is without having to wait for a change in the state. For example, I want the app to automatically dial a number but need to know if the phone is already in use (off the hook).
Asked
Active
Viewed 108 times
1 Answers
0
Use TelephonyManager. You can query it at any time, as long as you have the permission declared.

Charles Munger
- 1,417
- 12
- 11