I am having hard time comparing two strings in Android using Java, what I am doing is running HTTP get request which return yes or no and based on that I decide whether to l
try this
str1.toLowerCase().contains(str2.toLowerCase())
it work for me
There might be some white space in result.
Try trimming it.
result.trim().equals("yes")