Import Android settings to eclipse (including the source code for debugging)

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.