Android4.0, android2.0

Source: Internet
Author: User

Here I just want to talk about my feelings when I was working on a project. When I was doing Web Front-end development, I always naturally thought about the compatibility of various browsers, this makes a simple web page complex.

When we started this android project, we used the Android version. We thought that the advanced version should be compatible with the low-level version. I didn't want to perform a test in some advanced versions. I only recently tested some buckets:

1. In android3.0 and later versions, in order not to show ANR, it does not support any network operations in the UI thread, even simple operations. Otherwise, an error is reported:

Android. OS. networkonmainthreadexception

2. in low-level versions, many automatically obtain focus issues.CodeYou need to obtain them manually, such as view. requestfocuse ()....

 

It is found that the Code requirements in the android advanced version are increasingly strict ..

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.