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
There might be some white space in result.
Try trimming it.
result.trim().equals("yes")