         ArrayAdapter dataAdapter = new ArrayAdapter(MainActivity.this,android.R.layout.simple_spinner_item, list);              dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);              spinner0.setAdapter(dataAdapter);