Need help on AutoCompleteTextView for Searching
<p>I have implemented an <code>AutoCompleteTextView</code> for searching. Is <code>AutoCompleteTextView</code> supported in all SDK versions and targets, because when I tried this <a href="http://developer.android.com/resources/tutorials/views/hello-autocomplete.html" rel="nofollow">sample</a>
it shows an empty dropdown list. When I used the same in my application for parsed content placed inside a string array, I'm getting an Exception.</p>

<pre><code>Log.v("Length of a",Integer.toString(a.length));
try{
    wv.setVisibility(View.GONE);
    place_list.setVisibility(View.VISIBLE);
    Log.v("Length of a222222",Integer.toString(a.length));

    ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(Bru_Maps.this, android.R.layout.simple_dropdown_item_1line, a);
    textView.setAdapter(adapter);
} catch(Exception e) {                  
    Log.v("Error","search_name"+e);     
}
</code></pre>

<p>The above given code prints the log well but it returns a <code>NullPointerException</code>.</p>

<pre><code>ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(Bru_Maps.this, android.R.layout.simple_dropdown_item_1line, a);
</code></pre>
