标签: java android button android-intent spinner
My program cant execute the intent body when i click in a button. I have placed codes correctly and i also tried changing the variables to id's. Even though,my intent is not working . But it is not throwing any error . So please help me to fix this issue.
答案 0 :(得分:1)
您的问题与您将TextView文本设置为"Selected Category:" + selState,然后在OnClickListener中从同一TextView获取文本有关。因此,使用equalsIgnoreCase,您可以尝试使用contains("Anniversary")
"Selected Category:" + selState
OnClickListener
equalsIgnoreCase
contains("Anniversary")
根据我和其他人的建议,请重新格式化/重新发布您的问题。