dead line

代碼中,將某一對象轉換成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"));
}

}

發佈了27 篇原創文章 · 獲贊 0 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章