Пример #1
0
        // this method will run the threaded login code in Main thread due to which it blocks execution of _progressDialog and is not shown.
        private void loginSynchronously()
        {
            _progressDialog.Show();

            _loginService.Login("greg");

            onSuccessfulLogin();
        }
Пример #2
0
        protected override Java.Lang.Object DoInBackground(params Java.Lang.Object[] @params)
        {
            _loginService.Login(@params[0].ToString());

            return(true);
        }