After several struggles, we have successfully imported the Android settings source code into eclipse!
Before that, I hope you can do the following, otherwise reading down is just a waste of time.
<1> the operating system uses the 32-bit ubuntu10.10, software eclipse3.5, adt12.0, and jdk1.6.
<2> download android2.3 source code, recommended http://blog.csdn.net/AndroidBluetooth/article/details/6538254
<3> compile source code, recommended http://www.cnitblog.com/houcy/archive/2011/02/10/72771.html
If you do the above work well, the following is a pile of dishes.
1. Create an android Project
Copy the source code/packages/apps/settings to your other directories.
In eclipse, create a project, but select from exitting Source:
2. Import related library files
I hope you do this, otherwise you will encounter other inexplicable errors.
In eclipse, right-click the Project Settings/build path/Add libray
Select User libray and new.
Note: select the check box before system libray.
Click OK and add jars (add the corresponding jar package.
The jar package is the package under the/out/target/common/obj/java_libraries/framework_intermediates/directory of the source code.
Note:
In eclipse, right-click the Project Settings/build path/configure build path/and you will see the following:
Then, adjust the order as follows:
3. recompile
Clean in eclipse.
Note: You can put the/out/target/common/obj/java_libraries/framework_intermediates/classes. jar file in your settings project.
For example, create a directory libs in settings, put classes. jar in it, and then perform the following steps again!
Import other source code, which may be required
/Out/target/common/obj/java_libraries/android-common_intermediates/
The following JAR file. Import data in a similar way.
Good luck!