how to implement AutoCompleteTextView inside DialogFragment
<p>i have null pointer exception when put this inside DialogFragment in onCreateView method </p>

<pre><code> AutoCompleteTextView med =(AutoCompleteTextView)getActivity().findViewById(R.id.new_autoCompleteT);
 ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(getActivity().getBaseContext(), android.R.layout.simple_list_item_1, item);
 med.setAdapter(adapter);
</code></pre>
