Official android Technical Documentation translation-switch statement Conversion

Source: Internet
Author: User

Official android Technical Documentation translation-switch statement Conversion

 

Switch statement conversion was published in Sep 29,201 1, by Tor Norbye
From ADT 14,LibraryProject Resource constants are no longer final type. This is described in more detail in this document.
However, one of the consequences of this is that some existing old projects will not pass compilation after using ADT 14. The cause may be hard to understand. There is a new quickfix detector to solve this problem, it can find a specific compilation error, and add a "quickfix" prompt when such an error exists. This means that when you hover your mouse over an error, it will provide more help:
If you select this quickfix, you will see this dialog box:
If you select this option, you will see the following dialog box:
(Note-the URL has been changed-now it is http: // tool ?? S.android.com/tips/non-constant-fields .)
Hopefully this will make this question more apparent and reduce the painful modifications to the code that relies on constants in the library project resources.

 

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.