title: Android: Phone State in Broadcaster Receiver
body: <p>I use Broadcast receiver to catch Phone state Change.
  It works fine when the state change in in first time (for State_OffHook), but don't react when the call ends.
  This is my code:        </p>
  
  <pre><code>String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);                     
              if (TelephonyManager.EXTRA_STATE_OFFHOOK.equals(state)) {working fine}
                  else if (TelephonyManager.EXTRA_STATE_IDLE.equals(state)) {doesn't react}
  </code></pre>