sorry if this is a low quality question, but still is a question :) here im using a simple in the eyes condition for checking EditText's null Being,
public String theuser=null;
public String thepass=null;
EditText u=(EditText)findViewById(R.id.inputuser);
this.theuser = u.getText().toString();
EditText p =(EditText)findViewById(R.id.inputpassword);
this.thepass = p.getText().toString();
if ((theuser.equals(null))||(thepass.equals(null))){
Toast.makeText(this,"Username and Password Cant Be Empty!",
Toast.LENGTH_SHORT).show();
}else{
Log.i("lifemate","did you click me ?!"+theuser+" "+thepass);
BusProvider.getInstance().post(SendRequestInfo());
}
but the null check seems to be not working ! i tried .equals(null) and .equals("") too still not working! do guys know why is that ?!