Does anyone know what happened to android.provider.Telephony
? It is not there anymore.
I was able to send an SMS message with the G1 using the following library: android.telephony.gsm.SmsManager
So at least (for the SMS send/receive code) there is an equivalent library available.
Also be sure to check out the TelephonyManager http://code.google.com/android/reference/android/telephony/TelephonyManager.html
This isn't exactly what you were asking about, but it does provide a lot of the functionality you're looking for.
As for the APress book reference in the answer above, I wrote it. As of right now, it's a little out of date (It was published before the 1.0 SDK was published) and I'm almost done updating it. Ahhh the joys of rapidly updating technology.
The code you linked to on anddev.org is for SDK version m5-rc14 which is from February, 2008 almost an entire year old. The current SDK version is 1.0, with two releases between it and m5-rc14.
Given the nature of the Android project they have added and removed many interfaces in its rapid growth/adoption. A lot of people have complained that they are closing out some of the interfaces to some cool parts of the operating system, such as the Telephony interface.
You can check out android.telephony (link) package and see if there is equivalent functionality there.
If you read this post from the android-developer mailing list you can see that android.provider.Telephony
is part of the Open Source releases, but never included as part of the Official SDK.
Meaning you are free to view it, to gain a understanding of how the underlying system works, but you can't actually reference and compile against it in your Android application(s).
You can also use it to get data from your current reception signal. Check this tutorial- it uses the telephony manager to get data.
Thanks Brian, however, it seems Telephony is used by code posted on this site.
In this excerpt from Apress (ISBN: 978-1-43021-064-1) by Chris Haseman, it is used too:
Telephony class is used for sms messaging,
(Context context, Intent intent) { SmsMessage msg[] = Telephony.Sms.Intents.getMessagesFromIntent(intent); ...