Android.provider.Telephony.SMS_RECEIVED not available

I am trying to create a new SMS recipient.

I have a problem with googled, and all I found is that it requires

android.provider.Telephony.SMS_RECEIVED

but it does not exist in android 2.2

how to listen to new incoming messages - my question.!

+4
source share
1 answer

You are looking for android.provider.Telephony.SMS_RECEIVED_ACTION that matches the string value of android.provider.Telephony.SMS_RECEIVED.

public static final String SMS_RECEIVED_ACTION =
                "android.provider.Telephony.SMS_RECEIVED";

Check out this question on how to do this: BroadcastReceiver + SMS_RECEIVED

+4
source

Source: https://habr.com/ru/post/1773455/


All Articles