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
if you check null or empty String so you can try this
if (createReminderRequest.getDate() == null && createReminderRequest.getDate().trim().equals("")){ DialogUtility.showToast(this, ProjectUtils.getString(R.string.please_select_date_n_time)); }