Android Import source Packages apps error
After downloading the source code, and then Linux in the framework of the compilation of the app module is not error, but loaded into eclipse there will be many errors.
Google provides users with the SDK is castrated version of the inability to use the hidden API, if you want to use the system API such as import Android.os.AsyncResult;
First you need to download the source code, and then compile. After the compilation is complete
Most of the system APIs are available in Out/target/common/obj/java_libraries/framework_intermediates to copy Classer.jar to the Libs folder in Eclipse.
But some APIs, like Com.android.internal.telephony.Phone, might be somewhere else.
Find a dependent Telephony-common through the. mk file in the app directory
Local_path: = $ (call My-dir) include $ (clear_vars) Local_module_tags: = Optionallocal_src_files: = $ (call All-java-files-under, src) local_package_name: = Deviceinfo<span style= "color: #ff6666;" >local_java_libraries + = Telephony-common</span>local_certificate: = Platforminclude $ (BUILD_PACKAGE)
Or search through the shell command Phone.class find the place for this API call and find the corresponding Jar package mine is in
Java_libraries under the Telephony-common-intermediates directory
Find all the needed classes.jar and put it into the Libs in the project.
Eclipse Import Framework App Error