public void loadSpinnerData()
{
uData.open();//Open Database and get user data from table
// Spinner Drop down elements
List<String> user_id = uData.getUserID();
List<String> user_email = uData.getUser_Email();
List<String> company_email = uData.getCompany_Email();
// Creating adapter for spinner
ArrayAdapter<String> dataAdapter_user_id = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, user_id);
ArrayAdapter<String> dataAdapter_user_email = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, user_email);
ArrayAdapter<String> dataAdapter_company_email = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, company_email);
//Drop down layout style - list view with radio button
dataAdapter_user_id.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
dataAdapter_user_email.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
dataAdapter_company_email.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
// attaching data adapter to spinner
spn_user_id.setAdapter(dataAdapter_user_id);
spn_user_email.setAdapter(dataAdapter_user_email);
spn_company_email.setAdapter(dataAdapter_company_email);
uData.close(); //Close Database
}