I am unable to find android.provider.Telephony
action in android studio for creating an app that can receive SMS
. Almost every article including android developer says that I have to include a intent filter action android.provider.Telephony.SMS_RECEIVE
in manifest file. But I figured out that this action is no more supported by android studio. Please help me
Unable to find SMS permission in android studio
655 Views Asked by PADAMNABH ELECTRONICS At
2
There are 2 best solutions below
2

You need to give the permission to your manifest file,
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
Then you should include the intent-filter to your manifest,You should have taken a class that extends BroadcastReceiver write the name of that class as receiver name.In my case it is SMSReceivcer.
<receiver android:name=".SMSReceivcer"
android:exported="true"
android:permission="android.permission.BROADCAST_SMS">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED"/>
</intent-filter>
</receiver>
pls try this