Android : Phone call detect when connected?
<p>I can use this code to make outgoing call:   </p>

<pre><code>Intent dial = new Intent(Intent.ACTION_CALL); 
dial.setData(Uri.parse("tel:5556") ); 
context.startActivity(dial);
</code></pre>

<p>But how to detect whether the call is picked up or the call is refused? 
I tried PhoneStateListener, but it is not working. </p>
