public AndroidAuthenticator(AccountManager accountManager, Account account, String authTokenType, bool notifyAuthFailure)
 {
     this.mAccountManager = accountManager;
     this.mAccount = account;
     this.mAuthTokenType = authTokenType;
     this.mNotifyAuthFailure = notifyAuthFailure;
 }
        private void InitializeAccountManager()
        {
            manager = AccountManager.Get(this);

        }
示例#3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.LoginLayout);

            this.ActionBar.NavigationMode = ActionBarNavigationMode.Standard;
            ActionBar.SetDisplayShowHomeEnabled(false);
            ActionBar.SetDisplayShowTitleEnabled(false);

            mAccountManager = AccountManager.Get (this);

            String accountUsername = Intent.GetStringExtra ("accountName");

            Button loginButton = FindViewById<Button> (Resource.Id.loginButton);
            loginButton.Click += (sender, e) => {

                authenticate();
            };
        }