============ Problem Description ============
Error code line
String url = "http://192.168.1.121:9090/shunfengche/requestMes?pageSize=" + pageSize + "¤tpagenumber=" + Currentpagenumber; HttpClient client = new Defaulthttpclient (); HttpGet get = new HttpGet (URL),//httppost post=new httppost (URL); try {HttpResponse response = Client.execute (get);
Red and bold.
URL with browser access to normal unique data
Manifest file: <uses-permission android:name= "Android.permission.WRITE_EXTERNAL_STORAGE" ></uses-permission> <uses-permission android:name= "Android.permission.ACCESS_NETWORK_STATE"/><uses-permission android:name= "Android.permission.INTERNET"/>
Last night, the phone was able to display the server data normally the next day.
Error exception
Org.apache.http.conn.ConnectTimeoutException:Connect to/192.168.1.121:9090 timed out
============ Solution 1============
Re-brush the machine Bai. It should work.
============ Solution 2============
The server is not connected, the service may have stopped! Check again.
============ Solution 3============
Confirm that the post or get, the way you request is get, if it is post may not receive, service confirmation under
============ Solution 4============
Mobile phone network is not good, try several times.
The Android client does not request server data