PhoneNumberUtils.GetNumberFromIntent(Intent, Context) Method

Definition

Extracts the phone number from an Intent.

[Android.Runtime.Register("getNumberFromIntent", "(Landroid/content/Intent;Landroid/content/Context;)Ljava/lang/String;", "")]
public static string? GetNumberFromIntent (Android.Content.Intent? intent, Android.Content.Context? context);
[<Android.Runtime.Register("getNumberFromIntent", "(Landroid/content/Intent;Landroid/content/Context;)Ljava/lang/String;", "")>]
static member GetNumberFromIntent : Android.Content.Intent * Android.Content.Context -> string

Parameters

intent
Intent

the intent to get the number of

context
Context

a context to use for database access

Returns

the phone number that would be called by the intent, or null if the number cannot be found.

Attributes

Remarks

Extracts the phone number from an Intent.

Java documentation for android.telephony.PhoneNumberUtils.getNumberFromIntent(android.content.Intent, android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to