How can I convert editable text into string in Android ? Any solution?
Simply use toString() on the Editable instance to get String.
This is the class for text whose content and markup can both be changed. This is the interface for text whose content and markup can be changed (as opposed to immutable text like Strings).
Advertisements. A EditText is an overlay over TextView that configures itself to be editable. It is the predefined subclass of TextView that includes rich editing capabilities.
If I understand correctly, you want to get the String of an Editable object, right? If yes, try using toString()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With