HELP !!! WEBSERVICE ON SetActivity(Home)

    //Hello guys, all right ! ...
    //Well, come on .

    //I started developing an application . Net, 'm consuming webservice service my company .

    //Well I have an activity that logs in through my method LoginAsync ( )
    //after I login , it should call the activity Home.cs this aggregated Home.axml

    //so that ai .. this problem : just look at the code :

    //Home.cs :

    //private static app _webService ;
    //        private static TextView student;

    //        protected override void OnCreate ( Bundle bundle )
    //        {
    //            try
    //            {
    //                _webService app = new ( ) ;

    //                base.OnCreate (bundle ) ;

    //                / / Create your application here
    //                SetContentView ( Resource.Layout.Home ) ;

    //                _webService.LoginCompleted + = _webService_LoginCompleted ;
    //            }
    //            catch (Exception e1 )
    //            {

    //                var msg = new AlertDialog.Builder (this) ;
    //                msg.SetMessage ( e1.Message );
    //                msg.Show ();
    //            }

    //        }

    //        _webService_LoginCompleted void ( object sender , LoginCompletedEventArgs e)
    //        {
    //            try
    //            {
    //                var = new converter <AlunoMOD> converter ();
    //                dadosAluno conversor.ConvertJson = var ( e.Result );

    //                student <TextView> = findViewById ( Resource.Id.lblNomeAluno ) ;

    //                aluno.Text = Intent.GetStringExtra ( " Student" ) ? dadosAluno.NomeAluno ;
    //            }
    //            catch (Exception e2 )
    //            {
    //                var msg = new AlertDialog.Builder (this) ;
    //                msg.SetMessage ( e2.Message );
    //                msg.Show ();
    //            }


    //        }
    //    }
    //}

    //____________________________________________________________

    //Login.cs :

    // private static app _webService ;

    //        private static Button btnConectar ;
    //        private static EditText txtRm ;
    //        private static EditText txtSenha ;

    //        protected override void OnCreate ( Bundle bundle )
    //        {


    //            _webService app = new ( ) ;

    //            base.OnCreate (bundle ) ;

    //            SetContentView ( Resource.Layout.Login ) ;

    //            btnConectar <Button> = findViewById ( Resource.Id.btnConectar ) ;
    //            txtRm <EditText> = findViewById ( Resource.Id.txtRm ) ;
    //            txtSenha <EditText> = findViewById ( Resource.Id.txtSenha ) ;

    //            btnConectar.Click + = delegate
    //                {
    //                    try
    //                    {
    //                        _webService.LoginAsync ( txtRm.Text , txtSenha.Text , " XXXX - XXXX - XXXXX - XXXXX - XXXX " , " 1 " ) ;
    //                        _webService.LoginCompleted + = _webService_LoginCompleted ;

    //                    }
    //                    catch ( Exception ex )
    //                    {
    //                        var msg = new AlertDialog.Builder (this) ;
    //                        msg.SetMessage ( ex.Message ) ;
    //                        msg.Show ();
    //                    }
    //                } ;
    //        }

    //        private void _webService_LoginCompleted ( object sender , LoginCompletedEventArgs e)
    //        {
    //            try
    //            {
    //                var = new converter <AlunoMOD> converter ();
    //                dadosAluno conversor.ConvertJson = var ( e.Result );

    //                var home = new Intent (this, typeof ( Home) ) ;
    //                home.PutExtra ( " Student" , " Hello , " + dadosAluno.NomeAluno ) ;
    //                StartActivity ( home ) ;
    //            }
    //            catch (Exception e2 )
    //            {
    //                var msg = new AlertDialog.Builder (this) ;
    //                msg.SetMessage ( e2.Message );
    //                msg.Show ();
    //            }


    //        }

    //    }
    //}

    //This ae, can someone help me ?

Posts

  • DaveHuntDaveHunt USMember ✭✭✭✭✭

    Can someone help you what? You haven't said what the problem is.

  • JasonAwbreyJasonAwbrey USInsider, University, Developer Group Leader mod

    You've posted the same unreadable thing three times, and haven't clearly stated what the problem you're having is. You've also posted in the General forum, but this seems to be Android specific. There is a separate forum specifically for Android.

Sign In or Register to comment.