Android.Accounts.AccountManager.AddAccountExplicitly Method
Adds an account directly to the AccountManager.

Syntax

[Android.Runtime.Register("addAccountExplicitly", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)Z", "GetAddAccountExplicitly_Landroid_accounts_Account_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual bool AddAccountExplicitly (Account account, string password, Android.OS.Bundle userdata)

Parameters

account
The Android.Accounts.Account to add
password
The password to associate with the account, null for none
userdata
String values to use for the account's userdata, null for none

Returns

Documentation for this section has not yet been entered.

Remarks

Adds an account directly to the AccountManager. Normally used by sign-up wizards associated with authenticators, not directly by applications.

It is safe to call this method from the main thread.

This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#AUTHENTICATE_ACCOUNTS and to have the same UID as the added account's authenticator.

[Android Documentation]

Requirements

Namespace: Android.Accounts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5