SyntaxFix
Write A Post
Hire A Developer
Questions
Use
s.length()
The following was once suggested in one of the answers, but its very inefficient
textMessage.getText().toString().length()