Android Chinese Translation-accountauthenticatoractivity overview

Source: Internet
Author: User

Accountauthenticatoractivity Overview

This is an abstract base class for implementing activity, and is often used to help with the implementation of the Abstract Authenticator (Abstractaccountauthenticator) (implement). If the abstract authenticator abstractaccountauthenticator needs to use an activity to capture the request, it allows an activity to inherit accountauthenticatoractivity. The abstract authenticator Abstractaccountauthenticator passes the response to intent as follows:

Intent.  PutExtra( KEY_ACCOUNT_AUTHENTICATOR_RESPONSE , response);     

When this activity sets (specifies) The result, the result is passed to the response through the Setaccountauthenticatorresult (Android.os.Bundle) method. When activity ends, the result is sent as the result of the request. If this has never been set or is set to NULL, then the errorERROR_CODE_CANCELED 将会在响应上被调用。

Translator Note: The Account authenticator invokes this activity through intent, passing parameters through intent:

Intent.  PutExtra( KEY_ACCOUNT_AUTHENTICATOR_RESPONSE , response
Setaccountauthenticatorresult (Android.os.Bundle) to set the result of the processing.

Android Chinese Translation-accountauthenticatoractivity overview

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.