views:

64

answers:

1

How can I attach Java source to an Android project?

I'm able to browse java source for a Java project, but not for an Android project.

I modified project properties and add Java source in "Libraries" section, still not working

Any suggestions ?

+4  A: 

Follow the instructions here: http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/

Ryan Conrad
I'm sorry If I was not clear. I mentioned attaching java source that is different that attaching android source. I've successfully attached android source and that works well but I was just wondering if it's possible to attach JDK source to it too ?
sazwqa
you would follow the same steps as in the link, but you will have to include the java source with the android source.
Ryan Conrad
Unable to follow how to do this, can you explain further ? Do I need to pull in any additional directories from Android source code or do I need to put the java's src.zip in some specific folder.Thanks for your help !
sazwqa
i would try putting the java source in to the root of the android source directory since its organized by package name.
Ryan Conrad
Thanks, it worked !
sazwqa