Use TextUtils.isEmpty() instead of String.isEmpty() as the latter is only available in API > 8