示例#1
0
        void GotoLoginScreen()
        {
            PreferenceUtils.saveString(this.ParentActivity, PreferenceUtils.TOKEN, @"");
            var intent = new Intent(ParentActivity, typeof(LoginActivity));

            ParentActivity.StartActivity(intent);
            ParentActivity.Finish();
        }
示例#2
0
        private void OnGoogleLoginButtonClicked(object sender, EventArgs e)
        {
            // Display the activity handling the authentication
            var authenticator = Auth.GetAuthenticator();
            var intent        = authenticator.GetUI(this.Context);

            intent.SetFlags(ActivityFlags.NoHistory);
            StartActivity(intent);
            ParentActivity.Finish();
        }