title: cannot update dataset for AutoCompliteTextView
body: <p>I want to fill my AutoComplete textView with data from web. Howevere, despite asynctask returns me the correct data, autocompletetextview is not updated. Can you help me to fix this problem?
  Activity</p>
  
  <pre><code>public class FirstTab extends Activity implements OnClickListener,GetStreetNamesInterface{
  
  private ArrayAdapter&lt;String&gt; adapterStreenNames;
      private List&lt;String&gt; streetList = new ArrayList&lt;String&gt;();
      private AutoCompleteTextView userInput;
   userInput = (AutoCompleteTextView) promptsView
                              .findViewById(R.id.editTextDialogUserInput);
  
                      adapterStreenNames = new ArrayAdapter&lt;String&gt;(FirstTab.this,
                              android.R.layout.simple_list_item_1, streetList);
                      userInput.setAdapter(adapterStreenNames);
                      userInput
                              .setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
                                  @Override
                                  public void onItemClick(AdapterView&lt;?&gt; parent,
                                          View view, int position, long id) {
                                      UILApplication.street = userInput.getText()
                                              .toString();
                                  }
                              });
                      userInput.addTextChangedListener(new TextWatcher() {         
                          @Override
                          public void onTextChanged(CharSequence s, int start, int before, int count) {
                              GetStreetNames task = new GetStreetNames(FirstTab.this);
                              task.execute(s.toString());
  
                          }
  
                          @Override
                          public void beforeTextChanged(CharSequence s, int start, int count,
                                  int after) {                
  
                          }
  
                          @Override
                          public void afterTextChanged(Editable s) {
  
                          }
                      });
  
  @Override
      public void onGetStreetNamesInterface(List&lt;String&gt; result) {
          if(result!=null &amp;&amp; result.size()&gt;0){
              streetList.clear();
              streetList.addAll(result);
              adapterStreenNames.notifyDataSetChanged();
              Log.d("streets","updated");
              for(String s:streetList){
                  Log.d("streets",s);
              }
          }
  
  
      }
  </code></pre>
  
  <p>AsyncTask</p>
  
  <pre><code>public class GetStreetNames extends AsyncTask&lt;String,Void,String&gt; {
      private GetStreetNamesInterface callback;
      public GetStreetNames(GetStreetNamesInterface callback){
          this.callback=callback;
      }
      @Override
      protected String doInBackground(String... params) {
          UserFunctions u = new UserFunctions();
          return u.getStreetName(params[0]);
      }
      @Override
      protected void onPostExecute(String result) {
          super.onPostExecute(result);
          List&lt;String&gt; options = new ArrayList&lt;String&gt;();
          if(result!=null &amp;&amp; result.length()&gt;0){
              String[] parts = result.split("\n");
              for (int i=0; i&lt;parts.length;i+=2){
                  String[] element = parts[i].split("\\|");
                  options.add(element[1]);
  
              }
              callback.onGetStreetNamesInterface(options);
          }
          else{
              callback.onGetStreetNamesInterface(null);
          }
      }
  
  
  }
  </code></pre>
  
  <p>interface</p>
  
  <pre><code>public interface GetStreetNamesInterface {
      public void onGetStreetNamesInterface(List&lt;String&gt; result);
  }
  </code></pre>