1if (TextUtils.isEmpty(editText.getText().toString()))
2{
3 Toast.makeText(MainActivity.this,
4 "Empty field not allowed!",
5 Toast.LENGTH_SHORT).show();
6}
7else
8{
9 Toast.makeText(MainActivity.this,
10 "Proceed..",
11 Toast.LENGTH_SHORT).show();
12}