android programming check edittext empty code example
Example: testing if editText is empty java
if (TextUtils.isEmpty(editText.getText().toString()))
{
Toast.makeText(MainActivity.this,
"Empty field not allowed!",
Toast.LENGTH_SHORT).show();
}
else
{
Toast.makeText(MainActivity.this,
"Proceed..",
Toast.LENGTH_SHORT).show();
}