The Telephony class does not have a document API until API 19 (4.4 - KitKat). The lack of a class does not mean that what you are trying to do does not work. You must request this permission:
<uses-permission android:name="android.permission.RECEIVE_SMS"/>
And if you register your receiver in your manifest, it will look something like this:
<receiver android:name=".SmsIntentReceiver"> <intent-filter android:priority="1"> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> </receiver>
From android. Provider. Telephony AOSP:
public static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
Here is the source link for grepcode.com:
http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/2.3.2_r1/android/provider/Telephony.java/?v=source
Pay attention to the "@hide" immediately before the class declaration - it is, but is not displayed to developers. This is why it is not recognized in ADT.
source share