Code example for Spinner

Methods: getItemAtPosition

     *  @param position The position of the selected item. 
     *  @return The value represented by the given position. 
    public String getValue(int position) {
        return _choicesToValues.get(_spinner.getItemAtPosition(position));
    ////                private methods                            //// 
    /** Set the adapter for the underlying spinner widget based on the 
     *  available choices. 
     *  This method should only be called after the spinner widget is initiated, 
     *  and the map containing the available choices and values is set. 
    private void _setAdapter() { 
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(
                _spinner.getContext(), R.layout.simple_spinner_item,