Use
s.length()
The following was once suggested in one of the answers, but its very inefficient
textMessage.getText().toString().length()
More Related Contents:
- Get back key event on EditText
- How do i start a new line in String? [duplicate]
- How to stop EditText from gaining focus when an activity starts in Android?
- Android soft keyboard covers EditText field
- Is there a way to define a min and max value for EditText in Android?
- Android EditText delete(backspace) key event
- Soft keyboard open and close listener in an activity in Android
- Set inputType for an EditText Programmatically?
- How do you set EditText to only accept numeric values in Android?
- How do you set the EditText keyboard to only consist of numbers on Android?
- TextWatcher for more than one EditText
- How can I know when an EditText loses focus?
- Is there a way to programmatically scroll a scroll view to a specific edit text?
- What is meaning of boolean value returned from an event-handling method in Android
- EditText maxLines not working – user can still input more lines than set
- How to draw rounded rectangle in Android UI?
- android edittext onchange listener
- How to hide underbar in EditText
- Android TabWidget detect click on current tab
- Spinner : onItemSelected not called when selected item remains the same
- Masked Input Using EditText Widget in Android
- Set unchangeable some part of editText android
- Soft Keyboard shows up on EditText focus ONLY once
- EditText with soft keyboard and “Back” button
- Android different EditText backgrounds for different states using shapes, selector or list
- Android – How to achieve setOnClickListener in Kotlin?
- How to change focus color of EditText in Android
- Edit Text in ListActivity ListView loses focus when keyboard comes up
- Android: Set Edit text or text view id Programmatically
- Android EditText listener for cursor position change