到目前为止,我只能获得显示的回复,例如:
echo 111;
我正在使用此代码来解析响应:
ArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();
postParameters.add(new BasicNameValuePair("code",
getString(R.string.code)));
postParameters.add(new BasicNameValuePair("code", szid));
// String valid = "1";
String response = null;
try {
checkback.setText("Checking Version...");
response = CustomHttpClient.executeHttpPost(
"http://synamegames.com/giveaway/versioncheckid.php",
postParameters);
String res = response.toString();
// res = res.trim();
res = res.replaceAll("\\s+", "");
有什么方法可以列出其他5个值并让android安排它们按顺序排列吗?
ID | Code
1 | 512
2 | 521
3 | 232
4 | 315
5 | 124