String asdf = null; TextUtils.isEmpty(asdf) // true TextUtils.isEmpty(null) // true TextUtils.isEmpty("") // true TextUtils.isEmpty("1") // false TextUtils.isEmpty(" ") // false
다른 코드 찾다가 들어 간 블로그의 주인장이 따로 함수 만들어서 쓰는 걸 보고 댓글 달아 준 다음에 그냥 가기 뭐해서 내 블로그에도 올려둔다.