Yesterday to introduce you about the Android side to the server to send data, but seemingly a little flaw, today after debugging has been resolved, here to introduce you
Seemingly Android4.0 later version of the network permissions requirements become strict, resulting in the small case written yesterday can not send data to the server side, when you click to send data, Android console will error, the mistake is of course a headache, is basically about the HTTP error, so it is definitely an Android virtual machine There was an error sending data to the server, I did not know after the online check, after 4.0 version, the main thread is not allowed to call the network, if you need, should be another thread processing network connection thread (new Runable () {private void run{ The Run method calls the network Connection}}). Start ();
Of course, you can also set the Android version in Androidmanifest.xml by new:
<USES-SDK android:minsdkversion= "3" android:targetsdkversion= "8"/>
With the above two methods, I believe you must have a certain understanding of the Android Access server.
Note: If there is an error, also hope pointing. Thank you