Home > Android Dev > How to browse/attach android source code in Eclipse

How to browse/attach android source code in Eclipse

android sources for acitivity class

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).


1. create folder named “sources” in android_sdk  i,e in my case


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”

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

Categories: Android Dev
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: