what is difference between getEditableText and getText?

android, android-edittext, autocomplete

Solution

`getEditableText()`

Return the text that TextView is displaying as an Editable object. If the text is not editable, null is returned.

`getText()`

Return the text that TextView is displaying.

Problem

I found this question while working with autoCompleteTextView in android. It seems like it does not allow the autoCompleteTextView to fetch data through getEditableText method as the data is selected by autoCompleteList . What i understand is that when user edit the data by using inputType (using android keyboard) than that changes are saved somewhere through editable interface but when we select the data through autocomplete list it does not consider it as editable data. How to find that which method to use with which component.Or i can use any of these two method with any of editable and nonEditable component.Do these methods work same for all of the components or have any differences. I am asking for conceptual clarification.It will be best if you provide some example. thank you for your time in advance.

Original source