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 ..