I'm assuming you want a way to add a Spinner
programatically to your app.
Lets say you store your 16 items in an ArrayList
ArrayList<String> spinnerArray = new ArrayList<String>();
Spinners can be created using ArrayAdapters
Spinner spinner = new Spinner(this);
ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter (this,android.R.layout.simple_spinner_dropdown_item,spinnerArray);
spinner.setAdapter(spinnerArrayAdapter);
So far so good you've got a dynamic spinner but now you need data from it. Here's how you get it:
spinner.setOnItemSelectedListener(new OnItemSelectedListener() {
public void onNothingSelected(AdapterView<?> parent) {}
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
//Your logic for what happens when an Item is selected
}
});