討論串[問題]如何判斷 網路 連線能力
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者chiel (All 噴 將!!)時間11年前 (2014/05/27 00:54), 編輯資訊
0
0
2
內容預覽:
Try it.. public static boolean ping(String url, int timeout) {. // Otherwise an exception may be thrown on invalid SSL certificates.. url = url.replac
(還有568個字)

推噓2(2推 0噓 2→)留言4則,0人參與, 最新作者slemonade (淳)時間11年前 (2014/05/26 17:19), 編輯資訊
0
0
1
內容預覽:
Process p= Runtime.getRumtime.exec(ping -c 1 www.google.com); p.waitfor(); 用ping如果ping不到的話,會卡住呢,請問有什麼解決方式或其他方法嗎?. --. Sent from my Android. --. 發信站:

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者slemonade (淳)時間11年前 (2014/05/26 16:15), 編輯資訊
0
0
1
內容預覽:
請問各位前輩,當手機開啟wifi or 3g,可以用ConnectivityManager獲得連線資料;但是當wifi是內網且沒有上網的能力(無法看網頁),獲得的資訊一樣是有連線的;有沒有辦法可以知道wifi是不是確實可以上網的呢? 謝謝. --. Sent from my Android. --.
首頁
上一頁
1
下一頁
尾頁