Skip to content

Instantly share code, notes, and snippets.

@kannansuresh
kannansuresh / Get Android phone call history.md
Last active June 4, 2024 10:10
Get Android phone call history/log programmatically

Source: AndroidDev

To get call history programmatically first add read contact permission in Manifest file:

<uses-permission android:name="android.permission.READ_CONTACTS" />

Create xml file. Add the below code in xml file:

<Linearlayout android:layout_height="fill_parent"