After several struggles, or the Android settings source successfully imported into eclipse, here to share!
 
 
Before this, I hope you do the following, otherwise reading down is just a waste of time.
 
 
<1> operating system uses 32-bit ubuntu10.10, software eclipse3.5,adt12.0,jdk1.6
 
<2> download android2.3 source, recommend http://blog.csdn.net/AndroidBluetooth/article/details/6538254
 
<3> compile source code, recommend http://www.cnitblog.com/houcy/archive/2011/02/10/72771.html
 
 
If you do the above work, the following is a piece of cake.
 
 
1. New Android Project
 
 
Copy source/packages/apps/settings to your other directory.
 
 
In Eclipse, create a new project, but choose from exitting Source:
 
 
 
 
2. Import related library files
 
 
I hope you do this, or you will encounter other inexplicable and wonderful mistakes.
 
Eclipse Middle Right Key item Settings/build Path/add Libray
 
 
 
 
Select User Libray, select New, and go to a name arbitrarily.
 
Note: Be sure to select the check box in front of System Libray.
 
Click OK and select the corresponding jar package.
 
 
 
 
The jar package is the package below the source directory/out/target/common/obj/java_libraries/framework_intermediates/.
 
 
 
 
Note This step:
 
In eclipse, the right key item Settings/build path/configure build path/, and you'll begin to see the following:
 
 
 
 
Then, adjust the order as follows:
 
 
 
 
3. Compile again
 
 
Clean in eclipse.
 
 
Note: You can put the source directory/out/target/common/obj/java_libraries/framework_intermediates/classes.jar this file into your settings project.
 
For example, create a new directory in the Settings libs, and then put the Classes.jar inside, then, follow the steps above 2 to do it again!
 
 
Import other source code, you may need to/out/target/common/obj/java_libraries/android-common_intermediates/the following jar file. A similar method can be imported.
 
 
goodluck!