Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-06 Thread Klaus Kartou
I tried setting the adapter to null, and it actually works. The code looks like this: searchInput.setAdapter((ArrayAdapter) null); searchInput.setText(text); searchInput.setAdapter(adapter); I also use this technique to disable the autocomplete that kicks in when changing orientationhowever t

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Klaus Kartou
I have tried setting the contents of the adapter to an empty array, but that didn't help. Ok, setting the adapter to null might give different results, ill try that and come back with the result. Thanks! On Dec 5, 2009 11:22 AM, "Mark Murphy" wrote: > Yes and it works, but I need be able to call

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Mark Murphy
> Yes and it works, but I need be able to call setText() at any time, eg > when > the user presses a button. On the button click, try setting the adapter to null, set the text, then set the adapter back to its original value. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Dev

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Klaus Kartou
Yes and it works, but I need be able to call setText() at any time, eg when the user presses a button. On Dec 5, 2009 10:38 AM, "Mark Murphy" wrote: > So this is a response to another thread, that I never got a reaction on. > Hopefully someone can ... Have you tried calling setText() before atta

Re: [android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Mark Murphy
> So this is a response to another thread, that I never got a reaction on. > Hopefully someone can give a hand. > I have a AutoCompleteTextView with a CursorAdapter with data. I need to be > able to set a text in the AutoCompleteTextView programmatically without > the > autocomplete mechanism kick

[android-developers] How to disable autocomplete on AutoCompleteTextView

2009-12-05 Thread Klaus Kartou
So this is a response to another thread, that I never got a reaction on. Hopefully someone can give a hand. I have a AutoCompleteTextView with a CursorAdapter with data. I need to be able to set a text in the AutoCompleteTextView programmatically without the autocomplete mechanism kicking in. If I