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)
package maximyudin.spinner; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.widget.Spinner; import android.widget.ArrayAdapter; import android.widget.Button; import android.view.View; import android.widget.EditText; public class SpinnerSample extends Activity { private static final String[] mCountries = { “Russia“, “Germany“, “Ukraine“, “Belarus“, “USA“ }; private List allcountries; private ArrayAdapter aspnCountries; private EditText txtNewCountry; private Spinner spnCountries; @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 (int i = 0; i < mCountries.length; i++) { allcountries.add(mCountries[i]); } 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); } private Button.OnClickListener btnAddItemListener = new Button.OnClickListener() { public void onClick(View v) { allcountries.add(txtNewCountry.getText().toString()); aspnCountries = new ArrayAdapter(SpinnerSample.this, android.R.layout.simple_spinner_item, allcountries); spnCountries.setAdapter(aspnCountries); } }; private Button.OnClickListener btnRemoveItemListener = new Button.OnClickListener() { public void onClick(View v) { allcountries.remove(spnCountries.getSelectedItemIndex()); aspnCountries = new ArrayAdapter(SpinnerSample.this, android.R.layout.simple_spinner_item, allcountries); spnCountries.setAdapter(aspnCountries); } }; }