Month: August 2018

Android runtime permission – Read Phone StateAndroid 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 android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true"