Android.Accounts.AccountManager.SetPassword Method
Sets or forgets a saved password.

Syntax

[Android.Runtime.Register("setPassword", "(Landroid/accounts/Account;Ljava/lang/String;)V", "GetSetPassword_Landroid_accounts_Account_Ljava_lang_String_Handler")]
public virtual void SetPassword (Account account, string password)

Parameters

account
The account to set a password for
password
The password to set, null to clear the password

Remarks

Sets or forgets a saved password. This modifies the local copy of the password used to automatically authenticate the user; it does not change the user's account password on the server. Intended for use by the authenticator, 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 have the same UID as the 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