Can I change the symbol code for the modal name (from "Select an account" to "Pre-fill out the registration form")

A possible stream in Smart Lock integration leads to the “Select Account” modality for a new user. Selecting an account on this pop-up window fills the registration page, but the user must subsequently enter a new password to create an account. I find the heading “Select an account” to be misleading, as it makes the user believe that they already have an account in the application. Is it possible to change the title of this modal word to say something else - maybe something more intuitive, for example, "Fill form before filling with:"?

+1
source share
1 answer

I’m the product manager for Google Smart Lock. We added some functionality to support this in version 8.3 for the Play Services API (November 2015).

In the past , the hint dialogue , " ", , , . 8.3 , " ", "". , , UX , " " , " " , . ( : , !)

: a CredentialPickerConfig setForNewAccount(true) setHintPickerConfig() HintRequest getHintPickerIntent(), Auth.CredentialsApi 8.3.

import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.auth.api.credentials.CredentialPickerConfig;
import com.google.android.gms.auth.api.credentials.HintRequest;

CredentialPickerConfig selectorConfig = new CredentialPickerConfig.Builder()
        .setForNewAccount(true).build();
HintRequest hintRequest = new HintRequest.Builder()
        .setHintPickerConfig(selectorConfig).build();
PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent(apiClient, hintRequest);
try {
    startIntentSenderForResult(intent.getIntentSender(), RESOLVE_HINT, null, 0, 0, 0);
} catch (IntentSender.SendIntentException e) {
    Log.e(TAG, "Intent failure", e);
}

Github apiClient API. , .

https://github.com/googlesamples/android-credentials

+2

Source: https://habr.com/ru/post/1621256/


All Articles