Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; public class SpinnerSample extends Activity { private static final String[] _countries = {"Russia", "Ukrain", "Belarus", "Germany", "USA" } ; private List _allCountries; private ArrayAdapter _aspnCountries; private EditText _txtNewCountry; private Spinner _spnCountries; private Button.OnClickListener _btnAddItemListener = new Button.OnClickListener() { public void onClick(View view){ String newCountry = _txtNewCountry.getText().toString(); if (newCountry != null && !newCountry.equals("")) { _txtNewCountry.setText(""); // clear the input _aspnCountries.addObject(newCountry); int position = _aspnCountries.getPosition(newCountry); _spnCountries.setSelection(position); } } }; private Button.OnClickListener _btnRemoveItemListener = new Button.OnClickListener() { public void onClick(View view){ _aspnCountries.removeObject(_spnCountries.getSelectedItem().toString()); } }; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); _txtNewCountry = (EditText)findViewById(R.id.txtNewCountry); _spnCountries = (Spinner) findViewById(R.id.spnCountries); _allCountries = new ArrayList(); for (String s: _countries){ _allCountries.add(s); } _aspnCountries = new ArrayAdapter(this, android.R.layout.simple_spinner_item, _allCountries); _aspnCountries.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); _spnCountries.setAdapter(_aspnCountries); final Button btnAddItem = (Button)findViewById(R.id.btnAddItem); btnAddItem.setOnClickListener(_btnAddItemListener); final Button btnRemoveItem = (Button)findViewById(R.id.btnRemoveItem); btnRemoveItem.setOnClickListener(_btnRemoveItemListener); } }