Skip to content Skip to sidebar Skip to footer

Returning String Array And Use It On Autocompletetextview

I'm developing an android application in which I retrieve some piece of data ( all the village village names) from SQLite database table. I returned this via String Array. Code is

Solution 1:

ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_dropdown_item_1line,newone);

replace with this;

ArrayAdapter adapter = new ArrayAdapter(this,android.R.layout.simple_dropdown_item_1line,village);

Solution 2:

try this :

acTextView.setThreshold(1);

acTextView.addTextChangedListener(this);

acTextView.setAdapter(newArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, newone));

Post a Comment for "Returning String Array And Use It On Autocompletetextview"