title: Unsure how to resolve "Cannot resolve constructor" error
body: <p>I am getting an error on a particular fragment (which is one of three on a tabbed activity).  The error is:</p>
  
  <pre><code>Cannot resolve constructor 'ArrayAdapter(layout.OneWayFragmen,int,java.lang.string[])'
  </code></pre>
  
  <p>I am trying to include and autocomplete field on one fragment of a tabbed activity.  The java class in question is below:</p>
  
  <pre><code>package layout;
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  import android.widget.AutoCompleteTextView;
  import com.example.alibasmaci.maral.R;
  
  /**
   * A simple {@link Fragment} subclass.
   */
  public class OneWayFragment extends Fragment {
  
  
      public OneWayFragment() {
          // Required empty public constructor
      }
      public static OneWayFragment newInstance() {
          OneWayFragment fragment = new OneWayFragment();
          return fragment;
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
                               Bundle savedInstanceState) {
  
  
          View rootView = inflater.inflate(R.layout.fragment_one_way, container, false);
  
          String[] cities =
  
                  {"Ottawa - Carp CYRP",
                  "Toronto - Billy Bishop CYYZ",
                  "Montreal - St. Hubert CYHU"
                  };
  
          AutoCompleteTextView actvDeparture;
          actvDeparture = (AutoCompleteTextView) rootView.findViewById(R.id.actvDeparture);
          ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.select_dialog_item,cities);
          actvDeparture.setThreshold(1);
  
          return rootView;
      }
  
  }
  </code></pre>
  
  <p>The error I am referring to is a result of this line:</p>
  
  <pre><code>ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.select_dialog_item,cities);
  </code></pre>
  
  <p>Any thoughts on how to fix this?</p>
  
  <p>Thanks</p>