Android.Provider.Telephony Class
The Telephony provider contains data related to phone operation, specifically SMS and MMS messages and access to the APN list, including the MMSC to use.

See Also: Telephony Members

Syntax

[Android.Runtime.Register("android/provider/Telephony", DoNotGenerateAcw=true)]
public sealed class Telephony : Java.Lang.Object

Remarks

The Telephony provider contains data related to phone operation, specifically SMS and MMS messages and access to the APN list, including the MMSC to use.

Note: These APIs are not available on all Android-powered devices. If your app depends on telephony features such as for managing SMS messages, include a <uses-feature> element in your manifest that declares the "android.hardware.telephony" hardware feature. Alternatively, you can check for telephony availability at runtime using either Android.Content.PM.PackageManager.HasSystemFeature(string) or Android.Telephony.TelephonyManager.PhoneType.

Creating an SMS app

Only the default SMS app (selected by the user in system settings) is able to write to the SMS Provider (the tables defined within the Telephony class) and only the default SMS app receives the NoType:android/provider/Telephony$Sms$Intents;Href=../../../reference/android/provider/Telephony.Sms.Intents.html#SMS_DELIVER_ACTION broadcast when the user receives an SMS or the NoType:android/provider/Telephony$Sms$Intents;Href=../../../reference/android/provider/Telephony.Sms.Intents.html#WAP_PUSH_DELIVER_ACTION broadcast when the user receives an MMS.

Any app that wants to behave as the user's default SMS app must handle the following intents:

This allows your app to directly receive incoming SMS messages.

This allows your app to directly receive incoming MMS messages.

This allows your app to receive intents from other apps that want to deliver a message.

This allows users to respond to incoming phone calls with an immediate text message using your app.

Other apps that are not selected as the default SMS app can only read the SMS Provider, but may also be notified when a new SMS arrives by listening for the NoType:android/provider/Telephony$Sms$Intents;Href=../../../reference/android/provider/Telephony.Sms.Intents.html#SMS_RECEIVED_ACTION broadcast, which is a non-abortable broadcast that may be delivered to multiple apps. This broadcast is intended for apps that&mdash;while not selected as the default SMS app&mdash;need to read special incoming messages such as to perform phone number verification.

For more information about building SMS apps, read the blog post, .

[Android Documentation]

Requirements

Namespace: Android.Provider
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0