1

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).

Kara
  • 6,115
  • 16
  • 50
  • 57
Johann
  • 27,536
  • 39
  • 165
  • 279
  • Nope. That indicates state changes. As stated in my post, I need to query the state without detecting any changes. – Johann Mar 05 '13 at 08:37

1 Answers1

0

Use TelephonyManager. You can query it at any time, as long as you have the permission declared.

Charles Munger
  • 1,417
  • 12
  • 11