我已經寫在我的電腦一個PHP文件wampserver,我想在我的手機, 閱讀它,我可以成功訪問到該文件,如果我輸入網址(我的電腦IP) /android/get_all_products.php在我的手機瀏覽器。 但我的應用程序不能成功地訪問它,應用程序有互聯網的許可,可以糾正閱讀其他內容。 爲什麼?你能給我一些建議嗎?如何連接我的Android應用程序在計算機
String content=new ReadOnline.DownloadTextTask().execute("(my computer ip)/android/get_all_products.php").get();
Toast.makeText(this, content, Toast.LENGTH_LONG).show();
DownLoadTextTask與其他網址很好。
11-03 20:05:17.561 17519-17540/com.example.jifa.testonline D/Networking﹕ failed to connect to /192.168.1.191 (port 80): connect failed: ETIMEDOUT (Connection timed out)
11-03 20:05:17.561 17519-17540/com.example.jifa.testonline D/Networking﹕ Error connecting
11-03 20:05:17.591 17519-17519/com.example.jifa.testonline D/AAA﹕ [ 11-03 20:05:17.591 17519:17519 I/LBE-Sec ]
ActivityManager.GetContentProvider->settings
enter code here
開始允許從刪除獲得()你asynctask電話。 – greenapps 2014-11-03 12:30:14