Android: get call history of contact
i am using this code the get to the contact info of a contact (i am using it also - with a few modifications - to call, send sms or email the contact). I wonder if there is a way to show the call history of a certain contact: String name3 is the contact name. contactinfobtn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ContentResolver cr = getContentResolver(); Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); if (cur.getCount() > 0) { while (cur.moveToNext()) { id_contact = cur.getString(cur.getColumnIndex(ContactsContract