Recently, to modify the settings in the packages/apps directory, you need to add some functions. The code to be added is simulated on Eclipse, so it is moved to the android SDK source code.
Two problems occurred:
1)
The "@ override" overwrites the code written by eclipse in the window and prompts incorrect use of the "@ override" Overwrite method during compilation in the Linux Command Line, the same file appears several times "@ override", but this error is prompted only in two of them. I can remove the two.
2)
In addition, to use new string Resources in the code, you need to modify packages/apps/settings/RES/Values-ZH-RCN/string. XML and packages/apps/settings/RES/values/string. XML file.
After compilation, the Java code prompts "the symbol cannot be found". At first, the Code thought it was not generated into the out/target/common/R/COM/Android/settings/R. in the Java file, it is opened later and the packages/apps/settings/RES/XML/wireless_settings.xml file uses the same string resource, but no error is prompted.
Finally, we can solve the problem of importing two resource packages in the newly written Java file:
Import com. Android. settings. R;
Import com. Android. settings. R .*;
Previously, these two packages were not imported because it seems that there is no Java file in the original code that needs to be imported. The project resource package under eclipse is automatically imported by default. I still don't understand this problem!
Keywords:
After you modify the XML resources of the application under Android packages/apps source code, the system prompts "No symbol is found,
Modify the Android settings project and call the XML resource file in Linux