I have an AutoCompleteTextView which is using an ArrayAdapter<android.location.Address> as its Adapter.
The getView method of the adapter is iterating over the Address getAddressLine(i) and building a String to set the View with. The problem is once the user clicks on a suggestion, the toString() of Address gets entered instead of my String. How can I change this behavior?
This is where it’s happening, but I don’t know how to change it. Here it is suggesting to subclass?
On line 839, you are calling mFilter.convertResultToString(selectedItem); which is why you are getting the toString() of the address. If you want to enter the string in your view you need to return the value used in your view from this method.