2013年8月26日星期一

Android novice , neighborhoods on edittext

Why getText (). ToString () get edittext value is always ""
------ Solution ------------------- -------------------------

code is not wrong . Breakpoints , log, debug ...
------ Solution ------------------------------- -------------
evidently should be related to the write user registration page . You can try to write a System.out.println (ne + pd); Then logcat filter to capture what system.out, see if there is value, if there is a value to illustrate the control is no problem, then probably the intent -value problem . .
------ reference --------------------------------------- < br> your editext there are values ​​you
------ reference ------------------------------- --------
posted a look at the code and layout it

------ reference ------------------------------------ ---
at least to Zhang wrong picture to solve the problem for you right
------ reference --------------------- ------------------
put your code stickers out , the landlord
------ reference ---------- -----------------------------
name=(EditText)DialogView.findViewById(R.id.AccountEditText);
ne=name.getText().toString();
password=(EditText)DialogView.findViewById(R.id.PasswordEidtText);
pd=password.getText().toString();

------ reference ----- ----------------------------------
you determine what you use the input name. addTextChangedListener lay a log inside look
------ reference ---------------------------- -----------
Thank you , problem solving

没有评论:

发表评论