코드를 작성했습니다. 여기에 뭔가를 확인하고 싶습니다. 내 코드에 "HttpResponse response;"가 포함되어 있습니다. 기입하고 싶습니다.HttpResponse & string android
if(response>="0"){
//do somthing
}
이상은 할 수 없습니다. bcs 응답은 문자열이 아닙니다 ... 어떻게 수행할까요?
코드를 작성했습니다. 여기에 뭔가를 확인하고 싶습니다. 내 코드에 "HttpResponse response;"가 포함되어 있습니다. 기입하고 싶습니다.HttpResponse & string android
if(response>="0"){
//do somthing
}
이상은 할 수 없습니다. bcs 응답은 문자열이 아닙니다 ... 어떻게 수행할까요?
EntityUtils는 엔티티 처리를위한 정적 도우미입니다. (응답! = null의) 경우이 작업을하는 이유
http://www.developer.android.com/reference/org/apache/http/util/EntityUtils.html
String result = EntityUtils.toString(response);
if(result >="0"){
//do somthing
}
당신은 [편집] 게시물을 설명 할 수 있을까요? – Ben
response.toString()
시도해보십시오. 질문을 더 정식으로 작성해야합니다.
'' – Blackbelt