我使用Twitter-Digits 库。如何在不按此按钮的情况下立即进入数字输入Fragment
。我试过这个选项
AuthConfig.Builder builder = new AuthConfig.Builder();
builder.withAuthCallBack(new AuthCallback() {
@Override
public void success(DigitsSession session, String phoneNumber) {
TwitterAuthToken authToken = session.getAuthToken();
Toast.makeText(getActivity(), "Authentication successful for "
+ phoneNumber, Toast.LENGTH_LONG).show();
}
@Override
public void failure(DigitsException error) {
}
});
AuthConfig autConfig = builder.build();
Digits.authenticate(autConfig);
但它不起作用。你能告诉我吗?