问题
I'm trying to create a new SMS receive listner.
I have googled the problem and all I found was it requires
android.provider.Telephony.SMS_RECEIVED
but it doesnt exist in android 2.2
how to listen to new incoming messages is my question.!
回答1:
You are looking for android.provider.Telephony.SMS_RECEIVED_ACTION that corresponds to string value 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 it: BroadcastReceiver + SMS_RECEIVED
来源:https://stackoverflow.com/questions/3760212/android-provider-telephony-sms-received-not-available