Thanks for replay, i want to execute the thread when i click a button, but still no response it normally must pass to GaeHomeScreen activity .
On Jun 17, 3:25 pm, Prakash Iyer <thei...@gmail.com> wrote: > 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 <amellal.kamili...@gmail.com> 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 android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en