How to check recieved Intent action is NEW_OUTGOING_CALL, NEW_INCOMING_CALL or hang up ?
<pre><code>private static final String CALLACTION = "android.intent.action.PHONE_STATE";
</code></pre>

<p>then i register it</p>

<pre><code> final IntentFilter theCallFilter = new IntentFilter();
        theCallFilter.addAction(CALLACTION);

        yourCallReceiver = new CallReceiver();        

        // Registers the receiver so that your service will listen for broadcasts
        registerReceiver(yourCallReceiver, theCallFilter);
</code></pre>

<p>and later i check it with</p>

<pre><code>if(intent.getAction().equals("android.provider.Telephony.SMS_RECEIVED")) { ... }
</code></pre>

<p>but can i also check if is</p>

<pre><code>android.intent.action.NEW_OUTGOING_CALL
</code></pre>

<p>or incoming call or if is hang up...? If yes how inside this <code>PHONE_STATE</code> activity</p>
