Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.widget.ArrayAdapter; import android.widget.Spinner; import android.widget.SpinnerAdapter; import java.util.List; public class Main { public static void fillSpinner(Context context, Spinner lv, List<String> ls) { SpinnerAdapter adapter = new ArrayAdapter(context, android.R.layout.simple_spinner_item, ls); lv.setAdapter(adapter); } }