代碼中,將某一對象轉換成String後, 此對象類型轉換爲String , 不再是對象。
detail = (SoapObject) envelope.getResponse();
Tso = detail;
Log.d(TAG, "打印返回數據: " + detail.toString());
if(Tso == null){
Log.d("LL", "服務器未知錯誤");
}else{
if(Tso.getProperty("status").equals("OK")){
Log.d(TAG, "userId = " + Tso.getProperty("userId"));
Log.d(TAG, "desKey = " + Tso.getProperty("desKey"));
}
}