final DBAdapter db = new DBAdapter(this); db.open(); Spinner spin = (Spinner) findViewById(R.id.spinner1); AdapterCountries = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item); AdapterCountries.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spin.setAdapter(AdapterCountries); Cursor cursor = db.getAllTitles1(); while (cursor.moveToNext()) { results=cursor.getString(2); AdapterCountries.add(results); } db.close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)