判断字符串为空

if(TextUtils.isEmpty(item)){
    Toast.makeText(this,"为空", Toast.LENGTH_SHORT).show();
}
原文地址:https://www.cnblogs.com/lxshanye/p/3865599.html