I have a problem with Android. When you are using AutoCompleteTextView :
AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.entry);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.url_addresses);
String[] url_addresses = getResources().getStringArray(R.array.url_addresses);
for (String string : url_addresses) {
adapter.add(string);
}
textView.setAdapter(adapter);
.....
And when you entered the "google" keyword in textbox, auto complete system showing all urls which is start with "google". For example:
- google.com
- google.com.tr
- google.co.uk
But, I want to show urls which is contains "google". For example:
- http://www.google.com/
- https://mail.google.com/
- http://another.google.com/
I think this problem occurred if item does not contains any space (one word, like url).
It is possible?
Thanks a lot.