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\"); };
If your itemx is a variable then you cant compare two strings with ==. Use instead items.equals("Test number item 0");
itemx
==
items.equals("Test number item 0");
== compares objects and equals() compare string values. Take a look a this post.
equals()