title: Dynamically created autocompletetextview shows only selected row after orientation change
body: <p>I am trying to create an AutoCompleteTextView dynamically for use like a spinner in Android. I have made it work properly with showing the dropdown list on click and on focus change. But when I change orientation after selecting any option, only the selected option is shown in the dropdown after that.</p>
  
  <p>Is there any way to correct this and make it show all the items after orientation change as well? I found one way which is to <code>setText("")</code> everytime but this also clears any selected value which is undesirable.</p>
  
  <p>Any help appreciated!</p>