ok, i'll bite. at least i have no clue what you are asking and hence cannot help. you say "it couldn't be executed". what do you actually mean?
as an example the below code start's the activity only when there is an exception. is that what you wanted? or is that how you cut & paste? On Fri, Jun 17, 2011 at 11:18 AM, gaara <[email protected]> wrote: > Hi, > i wonder what's wrong with this part of the code,,please it's couldn't > be executed , the button in which is done is still static. > Peace, > Gaara > > > final Thread checkUpdate = new Thread() { > public void run() { > EditText name = (EditText) findViewById(R.id.userName); > EditText firstname = (EditText) > findViewById(R.id.userFirstName); > EditText mail = (EditText) findViewById(R.id.userMail); > EditText phone = (EditText) findViewById(R.id.userPhone); > User u = new User(); > u.setFirstname(firstname.getText().toString()); > u.setLastname(name.getText().toString()); > u.setMail(mail.getText().toString()); > u.setPhone(phone.getText().toString()); > final UserController uc = new UserController(); > try { > uc.create(u); > } catch (Exception e) { > return; > > final Intent intent = new Intent(AddUserActivity.this, > GaeHomeScreen.class); > startActivity(intent); > } > }; > checkUpdate.start(); > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

