Odd If Statement In Android With Reading Json
So I read a json api and get the results. Based on the results I want android to execute two different things. If status = no then I want one event and if status = yes I want anoth
Solution 1:
You can't use ==
to compare the contents of two Strings (or any 2 objects for that matter). You're comparing the reference, not the contents.
Use if(status.equals("no")){
Post a Comment for "Odd If Statement In Android With Reading Json"