Saving data of EDITTEXT field in?

Check if userNameTextField.getText().toString() == null; if yes disable your save button. Add a textChangedListner to check if text is getting added in that box userNameTextField. AddTextChangedListener(new TextWatcher() { public void onTextChanged(CharSequence s, int arg1, int arg2, int arg3) { // TODO Auto-generated method stub charachtercounter1.

SetText(String. ValueOf(s.length())); } public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) { // TODO Auto-generated method stub } public void afterTextChanged(Editable arg0) { // TODO Auto-generated method stub } }).

If (userNameTextField.getText().toString().length()! = 0) { value = String. ValueOf(userNameTextField.getText()); } Try this..Where value is String..

This did not work for me.... it again saved null in the database. – gurnoorinder Mar 26 at 23:01.

In the first screen I have two EditText fields. One takes a string and another an int. I click on the save button to save the values in the database.

Now the problem that I get is that NULL is being saved into the database. When I hard code it, the values get saved. Anyone has any idea as to why is this happening.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions