void GotoLoginScreen() { PreferenceUtils.saveString(this.ParentActivity, PreferenceUtils.TOKEN, @""); var intent = new Intent(ParentActivity, typeof(LoginActivity)); ParentActivity.StartActivity(intent); ParentActivity.Finish(); }
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(); }