Get values from the database and store it in an array and populate in spinner.
String[] array;
Spinner spinner = (Spinner) findViewById(R.id.spinner1);
ArrayAdapter arrayAdapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item, array);
spinner.setAdapter(arrayAdapter);