In my trying AsyncTask I get email address from my server. In onPostExecute() I have to check is email address empty or null
AsyncTask
onPostExecute()
empty
null
Checking for empty string if it is equal to null, length is zero or containing "null" string
public static boolean isEmptyString(String text) { return (text == null || text.trim().equals("null") || text.trim() .length() <= 0); }