以下のコードを使用してselectediemテキストを取得します。選択されたものに基づいて何かを表示するのが好きですが、一致しないのは奇妙です。手がかりはありますか?
Spinner mlogin_store;
mlogin_store = (Spinner) findViewById(R.id.spinlogin_store);
String Text = mlogin_store.getSelectedItem().toString().trim();
Log.d("click",Text); //I can see the "Abc" in LogCat. but it doesn't match the string below.
if (Text=="Abc"){ //first block
//Do something
}else{
//do something else}