Registration Login for Android development

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.