1. Load source code
Android project from existing code select Source Code project settings;
2. Load the required jar package
(Change the name)
Out/target/common/obj/java_libraries/framework_intermediates/classes. Jar
Out/target/common/obj/java_libraries/core_intermediates/classes. Jar
Out/target/common/obj/java_libraries/android_stubs_current_intermediates/classes. Jar
Out/target/common/obj/java_libraries/android-common_intermediates/classes. Jar
Out/target/common/obj/java_libraries/frameworks-core-util-lib_intermediates/classes. Jar
Out/target/common/obj/java_libraries/ext_intermediates/classes. Jar
Add other jar files according to the actual project.
Guava-r07.jar online download
In the android-support-v4.jar SDK.
Place the created libraries order at the beginning:
Project-> build path-> Configure build path-> order and export select the newly created jar and click the up key to bring it to the top.
3. Change the package name
Select a package and press F2 (, I selected com. Android. settings to com. Zheng. settings, and the sub-package is automatically changed)
Then androidmanifest. XML will get an inexplicable error (<service android: Name = ". Bluetooth. dockservice"/>) and overwrite it with the previous one.
Add <uses-SDK Android: minsdkversion = "14"/> to androidmanifest. xml;
Permission increase
<Uses-Permission Android: Name = "android. Permission. get_accounts"/>
<Uses-Permission Android: Name = "android. Permission. connectivity_internal"/>
Then, the. xml file in res will be completely replaced (COM. Android. Settings
To Com. Zheng. settings ).
In the code, change com. Android. settings. R to import com. Zheng. settings. R;. Replace can be used;
Delete all import Android. User. Id. All problems arising therefrom are eliminated.
Routine
Guava-r07.jar
Executable code
Refer:
Http://www.cnblogs.com/lygshow/archive/2012/03/19/2406205.html