Coding Logic Specification Summary:
1, avoid using multiple classes in a file, unless it is a one-time use of internal classes
2, one method code length best not more than 35 lines
3, in principle, try not to modify the automatically generated files, such as R file
4. Final string instead of direct "string", the same as int
5, not recommended in the loop, the direct return operation
6. Do not use goto statements
7, everywhere to consider anomalies
8, only for the need to publish the time to use public, other times with private or internal
9, try not to use public and protected programmer variables, using attributes to replace them
10, do not write the business code directly in the system automatically generated functions, it is best to customize the function, and then call
11, always use the interface, it is recommended to use the Display interface implementation
12. Always have default words in the switch statement to display the information
Directory specification, code naming specification, Coding logic Specification
Reference Sundy Teacher Tutorial
Android Code Specification 05