Android Development Registration Login Method Sample _android

Source: Internet
Author: User

As described in this article, continue on the Android end to the server to send data to further improve the method of registering login, due to the version of the problem appeared a little flaw, today after debugging has been resolved, here to introduce you.

After the Android4.0 version of the network authority requirements become strict, the previous case could not send the data to the server side, when you click to send data, the Android console will report an error, of course, is a headache, is basically about HTTP error, so it can be sure that the Android virtual machine to The server sent the data error, after a check and test to know, after 4.0 version, the main thread is not allowed to call the network, if you need, you should start a thread to handle network connection thread (new Runable () {private void run{ Call Network Connection}} in the Run method. Start ();

Of course, you can also set up the Android version in Androidmanifest.xml:

<USES-SDK
    android:minsdkversion= "3"
    android:targetsdkversion= "8"/>

With the above two methods, I believe you must have a better understanding of the Android Access server.

I hope the examples described in this article will help you with your Android Web program development.

Related Article

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.