How to view android sources in Eclipse
Posted by Andrey Chorniy on May 26, 2010
I don’t know any more straightforward way to work with (view/browse) android sources in eclipse on the moment. I have downloaded sources from GIT before, but that actually doesn’t allow me to browse them in Eclipse. I still have to find the source on the disk to browse it, since they are scattered in different folders.
I find this article very helpful http://android.opensourceror.org/2010/01/18/android-source/ (all information below is actually taken from this article)
So, in short – download zipped sources from
Unzip it them in the corresponding \source folder for particular platform/SDK ${android-sdk-home}/platforms/android-4/sources
And refresh you project in Eclipse, that’s all – it works for me in “Eclipse Galileo” and “Eclipse Helios” so I believe it should work for you too.
There is some possible problem with viewing sources in debug which is covered in the source article – “Just click on that “Edit Source Lookup Path” button to add a source lookup path.
In that dialog leave “Default” selected and click “Add.”
In the following “Add Source” dialog choose “File System Directory” and hit the OK button: Then choose the source directory where you unzipped the code. The debugger should now show all the code you can debug into.



CFranko said
This blog is a positively gracious undivided. As a result of for stakeing such great bumf out. Ill deff be driving by more often so i an see whats informative!