you can use this method from android framework
public static boolean isEmpty (CharSequence str)
Added in API level 1
Returns true if the string is null or 0-length.
Parameters
str the string to be examined
Returns
true if str is null or zero length
http://developer.android.com/reference/android/text/TextUtils.html#isEmpty%28java.lang.CharSequence%29