Thursday, August 5, 2010
How to browse/attach android source code in Eclipse
Many Android developers spend more time in browsing Android sources ONLINE, But the following note is how to browse android source code offline with eclipse. below steps are confirmed to work on Win7 and Ubuntu 10.04. drop me a note if you have any issue(s).
steps:
1. create folder named "sources" in android_sdk i,e in my case
xxx/android-sdk-linux_86/platforms/android-8/sources
2. The public SDK source is found in android_src/frameworks/base/core/java.
Under that folder you’ll find an 'android' directory, which should be copied (or symlinked) over to the sources directory in your SDK installation.
i:e /home/br/bin/U/android-sdk-linux_86/platforms/android-8/sources/android
3.Now extract all the sources of android into folder 'sources'
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/android** copied from path "androd_src/frameworks/base/core/java"
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/bionic
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/bootable
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/build
/home/br/bin/U/android-sdk-linux_86/platforms/android-8/sources/cts
/home/br/bin/U/android-sdk-linux_86/platforms/android-8/sources/dalvik
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/development
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/device
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/external
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/frameworks
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/hardware
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/libcore
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/ndk
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/packages
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/prebuilt
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/sdk
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/system
/home/xx/bin/U/android-sdk-linux_86/platforms/android-8/sources/Makefile
4. click refresh on projct explorer or restart eclipse,and to test just open any android class file, jus open activity.class and there you go...
Next steps will follow on how to build User defined shared (.so)and static libraries using Android NDK and SDK
Labels:
Android Dev
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment