Check if string is number in android
If you are looking for a way to just check if the string contains digits (so check for integer values), use the native TextUtils.isDigitsOnly(CharSequence str)
.
If you are looking for a way to just check if the string contains digits (so check for integer values), use the native TextUtils.isDigitsOnly(CharSequence str)
.