看板 [ java ]
討論串[問題] Android Widget要連HTTP有問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 3→)留言5則,0人參與, 最新作者TllDA (踢打)時間13年前 (2010/10/19 22:38), 編輯資訊
1
0
1
內容預覽:
大家好. 我在練習寫可以上網抓一些資料的widget. 可是HttpResponse的宣告每次執行時都會出錯(Eclipse檢查時是正常). 我的大概結構如下. public void onUpdate. (Context context, AppWidgetManager appWidgetMan
(還有559個字)

推噓4(4推 0噓 0→)留言4則,0人參與, 最新作者epicwonder (金州土匪隊)時間13年前 (2010/10/20 23:25), 編輯資訊
0
0
1
內容預覽:
用一下try catch看是什麼錯誤. 請用adb logcat看debug logcat. 會不會是你的xml沒有宣路 使用網路的權限??. try{. HttpResponse resp = client.execute(req); //this line will go to exceptio
首頁
上一頁
1
下一頁
尾頁