2014-11-03 71 views
0

我已經寫在我的電腦一個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 
+2

開始允許從刪除獲得()你asynctask電話。 – greenapps 2014-11-03 12:30:14

回答

0

我已經解決了這個問題,刪除所有來自所有在httpd.conf的拒絕,這是遠遠不夠的唯一的變化從沒有允許所有

+0

這是一個非常危險的解決方案。其他人不應該使用這個。 – RiggsFolly 2014-11-05 09:59:36

相關問題