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