Java tutorial
//package com.java2s; import android.content.Context; import android.widget.Spinner; public class Main { public static Spinner createSpinner(Context context) { //return new Spinner(context, 1); return new Spinner(context); } }