You can use android.text.TextUtils.isEmpty() instead. This method also checks to see if the String is null and has been available since API level 1.
if (TextUtils.isEmpty(str)) {
Log.d(TAG, "String is empty or null!");
}
You can use android.text.TextUtils.isEmpty() instead. This method also checks to see if the String is null and has been available since API level 1.
if (TextUtils.isEmpty(str)) {
Log.d(TAG, "String is empty or null!");
}