开发者

Problem obtaining web service response

开发者 https://www.devze.com 2023-03-19 17:41 出处:网络
I made a web service REST in .NET which is succesfully conected with the app made in android, but the problem is that when I want to obtain the response, String in this case, I can\'t compare it insid

I made a web service REST in .NET which is succesfully conected with the app made in android, but the problem is that when I want to obtain the response, String in this case, I can't compare it inside the android app.

The problem is that if I've got r开发者_如何学运维es as my web service response, with a value of "Err" and I do:

if (res == "Err")

It just says they do not match. What could be the problem?


Comparing strings in Java:

if(res.equals("Err")) {
 // equals
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号