How to find out call and sms details for last 10 days from my app
<p>I'm working on an app in that I have to fetch all call and sms records for last 10 days. Now I'm only able to find out all contacts for those who has sent me sms and all the phone contacts. So guys please help me show how I can find out or fetch last 10 days call and sms details from my applications?</p>

<p>My code is like this:</p>

<pre><code>final Uri SMS_INBOX = Uri.parse("content://sms/inbox");

Cursor c = getContentResolver().query(SMS_INBOX, null, "read", null, null);
int readMessagesCount = c.getCount();
Toast.makeText(getApplicationContext(),
    "Read massage info"+readMessagesCount, 2000).show();
c.deactivate();
while (c.moveToNext()) {
    String asd = new String(c.getBlob(c.getColumnIndex("address"))); 
    Toast.makeText(getApplicationContext(), asd, Toast.LENGTH_SHORT).show();
</code></pre>
