How to view android sources in Eclipse

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

Click edit source lookup path button

In that dialog leave “Default” selected and click “Add.”

Leave default selected=

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.

Define path to unpacked sources

Tagged with: , , , ,
Posted in Android, Software Development
One comment on “How to view android sources in Eclipse
  1. CFranko says:

    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!

Leave a Reply

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

You are commenting using your 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: