Copy others' methods and back up them. Below is the link.
Http://blog.csdn.net/stonecao/article/details/6457935
This is the second typical case, that is, the internal API support is required. Pay attention to the instructions in each word of the author. Otherwise, an important step may be missed and the Red Cross may be obtained.
-- 1. Find the source code of the Setting project: android2.2/packages/apps/settings/
-- 2. copy to your workspace
-- 3. Use setting as the source code to create a new Android Project
-- 4. at this time, there will be some errors to be solved in the project. first introduce the jar package classes generated by the Framework compilation. jar to ensure that our project can be compiled normally. This has been done for a long time and the path is not correct. Here we provide a reference path: android2.2/out/target/common/obj/java_libraries/framework_intermediates
-- 5. Modify the compilation sequence:
Modify the compilation sequence so that the project uses classes. jar first.
Android_inner here is the user_libraries that contains classes. jar.
-- 6. Re-compile the clean setting project, and everything will be OK.
Setting is not as simple as installing a common application.