'uname[i]'
usernames
spinner
username
sp_attention=(Spinner) findViewById(R.id.spAttention); ArrayAdapter<String> adapter2 = new ArrayAdapter<String> (this,android.R.layout.simple_spinner_item,uname); sp_attention.setAdapter(adapter2); adapter2.notifyDataSetChanged(); sp_attention.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { AttentionSelected=sp_attention.getSelectedItem().toString(); } public void onNothingSelected(AdapterView<?> arg0) { } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)