1

my Eclipse doestn work as i want it in two terms.

Every method i want to use is described with arg0 arg1 arg2 instead of the real name for Example: getPrefs.getBoolean(arg0, arg1) instead of getPrefs.getBoolean(key, defValue)

and also the explanation of the functions/methods is completely missing.

would be grateful if somebody could help me.

The Digital Ad Venture
  • 1,576
  • 1
  • 16
  • 24

2 Answers2

1

IIRC you need to have the Javadocs/Source code attached to your project.

Right click on your project and select properties Select "Java Build Path" Then "Libraries" Then whichever is your main Android API, expand and edit to set the "Source Attachment"/"Javadocs"

This should provide the java doc cues

Kurru
  • 14,180
  • 18
  • 64
  • 84
  • http://stackoverflow.com/questions/2268183/javadoc-in-an-eclipse-android-project For clearer instructions – Kurru Sep 07 '11 at 19:25
  • thanks for your answer. I dont get it completely yet sorry. If i klick edit to the source Attatchment what is at the moment set to : none, i get the message: select the location containing the source for android.jar ! how to find out what my location path is or where this file is located? thanks a lot!!! – The Digital Ad Venture Sep 07 '11 at 21:58
  • That link I posted earlier has correct instructions. Just change the Android.jar javadoc to whatever "{sdk_root}/docs/reference/" is for your computer. Just set that up on my own computer and it worked – Kurru Sep 07 '11 at 22:33
  • 1
    Sorry I didnt see the Link back then. I m new to android and this forum. Thanks a lot!!! it works now! – The Digital Ad Venture Sep 08 '11 at 08:30
  • Ah since you're new, when you've got an answer to your question its good to mark it as "accepted" by giving it the green tick :) – Kurru Sep 08 '11 at 13:22
0

I had the same problem.

  1. Get src.zip file

Download dk-8u181-linux-x64.tar.gz file from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Extract it. The file contains the src.zip file.

  1. Copy the file in the JDK directory

  2. Attach the file in the Source Attachment Configuration.

Open Eclipse.
Open a Class.
Control+click in a method.
(A window appears which says "No source found")
Click in Attach
Click in External Localitation
Click in External File
Look for the directory with the src.zip file
Attach it.

Control+click
Attach

Youtube explanation

https://www.youtube.com/watch?v=jx9l72NBVC8

Sergio
  • 1
  • 2