用的最多的当然是TextUtils.isEmpty(str)
/**
* Returns true if the string is null or 0-length.
* @param str the string to be examined
* @return true if str is null or zero length
*/
public static boolean <strong>isEmpty</strong>(CharSequence str) {
if (str == null || str.length() == 0)
return true;
else
return false;
}
To Be Continued