Java & Android src for class inspection

I have an android project and it has, I think as default, the sdk/sources/android-19 directory added as a sourcepath. When using C-h I can then inspect the class hierarchy and in the project structure tab (M-7) I see the relevent methods. For Android SDK specifics, e.g Activity, I see the raw source code. As a Java noob I'd like, very much, to be able to see the source for stuff like java.lang.String in this way too BUT it's bringing up the compiled and subsequently decompiled source - I'm assuming because its building using a precompiled android jar (which then I wonder why I'm not getting decompiled output for the Android specifics too).

So, the Q is : how do I have the class browser/inspector show the raw source for java.lang etc. Or should this be the case if I have the sources downloaded in the SDK and the problem lies elsewhere in my setup?

Many thanks for your time.

3 comments
Comment actions Permalink

(btw the open jdk src.zip is also on the sourcepath)

0
Comment actions Permalink

You should be able to see the hierrchy and class structure if you have sources downloaded and attached to the SDK you use in the project http://imageshack.us/a/img35/2272/qkgs.png , http://imageshack.us/a/img199/6456/z0kk.png . Please check https://www.jetbrains.com/idea/webhelp/sdk.html .

0
Comment actions Permalink

Many thanks for your reply.

I had the relevant sources attached to the SDK.

It would keep getting into a long make cycle and run out of resources  and fail.

In the end  I deleted the project, recreated it and it worked. Something somewhere went awry but it works for me now.

0

Please sign in to leave a comment.