title: to check if all EditText are empty
body: <p>I have 6 EditText fields in an xml.. on Button click I need to validate whether all EditText have values or it is empty. 
  Currently I am check each EditText one by one.. How can I check all at once.</p>
  
  <p>the Code </p>
  
  <pre><code>private Button BtnSave;
   EditText ev_last_name,ev_first_name,ev_email,ev_password,ev_confirm_password,ev_phone;
   String last_name,first_name,email,password,confirm_password,phone;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.signup);
      BtnSave=(Button) findViewById(R.id.BtnSave);
      ev_last_name=(EditText)findViewById(R.id.edit_lname);
      ev_first_name=(EditText)findViewById(R.id.edit_fname);
      ev_email=(EditText)findViewById(R.id.edit_email);
      ev_password=(EditText)findViewById(R.id.edit_passwd);
      ev_confirm_password=(EditText)findViewById(R.id.edit_cpasswd);
      ev_phone=(EditText)findViewById(R.id.edit_phone);
  
  
  
      BtnSave.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
               last_name=ev_last_name.getText().toString();
               first_name=ev_first_name.getText().toString();
               email=ev_email.getText().toString();
               password=ev_password.getText().toString();
               confirm_password=ev_confirm_password.getText().toString();
               phone=ev_phone.getText().toString();
  
               if ((ev_last_name.getText().toString().length() &lt;= 0))
               {
                   System.out.println(" The EditText is empty");
                   //I will use the toast later
               }
  
  
          }
      });
  
  
  }
  </code></pre>