Android runtime permission – Read Phone State

Step 1 :  Add this uses permission in manifest [java] <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>[/java] As like this [java]</pre> <pre><?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.arifhasnat.automaticcallrecorder"> <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> <application…