Why is this not working ?!
if(itemx == \"Test number item 0\") { Log.i(\"Dropdown\", \"inside if\"); us_lo_ans_hold.setText(\"0x\"); }; <
if(itemx == \"Test number item 0\") { Log.i(\"Dropdown\", \"inside if\"); us_lo_ans_hold.setText(\"0x\"); };
Never compare Strings with ==, use equals:
if(itemx.equals("Test item 0")){...
As for onNothingSelected, the documentation states it will be called for example if you delete the selected item from your adapter.