To check if the content of a EditText is empty or not, the method equals() can be used.
if (EditText.getText().toString().equals(""))
{
//Do if the EditText is empty
}
else
{
//Do if the EditText is not empty
}
Where EditText is the View of the EditText.
Thank you for reading this article Check empty of EditText With URL https://x-tutorials.blogspot.com/2009/11/check-empty-of-edittext.html. Also a time to read the other articles.
0 comments:
Write your comment for this article Check empty of EditText above!