How to exclude sent and received message log while retriving data from android calllog db
<p>Code for retrieving call logs from database:</p>

<pre><code>String[] strFields = { android.provider.CallLog.Calls.NUMBER, 
android.provider.CallLog.Calls.TYPE,android.provider.CallLog.Calls.CACHED_NAME, 
android.provider.CallLog.Calls.DATE, android.provider.CallLog.Calls.DURATION };

String strOrder = android.provider.CallLog.Calls.DATE + " DESC";

Cursor mCallCursor = context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI, strFields,null, null, strOrder);
</code></pre>

<p>It is retriving all logs, including recently messaged phone no and time.</p>

<p>But I want to exclude recently messaged items from call log. </p>

<p>Can anyone help me?</p>
