try to replace your item click listener with this ...
mySpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> arg0, View view,
int position, long id) {
int spinnerItem = spinner.getSelectedItemPosition();
car = vehicleList.get(spinnerItem);
Toast.makeText(getApplicationContext(), selectedId, Toast.LENGTH_SHORT).show();
}
public void onNothingSelected(AdapterView<?> arg0) {
// nothing to do here :|
}
});
//EDIT you can create another list that hold values of IDs ... and then add values to it as vehicleList ...
idList.add(id);
and then just call when item is selected in spinner
String selectedId = idList.get(spinnerItem);