11

I am using the google drive api for android in eclipse, how do I link the documentation so that when I hover over something, I can view the java doc for it.

Vnge
  • 1,295
  • 25
  • 49
  • Thanks! Yeah I can't really figure out how to do it, and some of the documentation online is confusing. – Vnge Feb 12 '13 at 19:33
  • Have you tried using sources.jar in the libs – codejammer Feb 20 '13 at 06:18
  • to pop up when i hover over something? or to go into the the jar and fins it that way.. I'm looking for a on the fly kinda thing – Vnge Feb 20 '13 at 06:26

2 Answers2

2

Assuming you are using the Android Development Tools (ADT), see https://stackoverflow.com/a/11579339/1369991 on how to do it.

Note that the contents of the libs folder will be bundled with your application. So you really should put the source and Javadoc JARs in another folder or even keep them outside of your workspace. Everything described in that answer also works with external JARs -- on Windows you just have to use \\ or / instead of the usual \ as path separator.

Community
  • 1
  • 1
Andreas Mayer
  • 687
  • 5
  • 15
  • The thing is, I don't have sources OR the java doc for any of the jars for this.. – Vnge Feb 23 '13 at 19:29
  • The [API download](https://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API) contains JARs for the sources and the Javadocs. – Andreas Mayer Feb 25 '13 at 09:35
  • So how do I add those, by making the .properties file for each jar? Where is the location of the jars – Vnge Feb 25 '13 at 18:21
  • Did you look into the downloaded file? Did you read the answer I've linked to. What else do you need? Reading your initial question, I really thought, you already had the Javadocs and just didn't know how to integrate them into the IDE -- that's the only tricky part. Take some initiative, please. – Andreas Mayer Feb 26 '13 at 15:37
0

I just found Google Plugin for Eclipse and the 3rd dot says Importing the latest Google APIs

madlymad
  • 6,367
  • 6
  • 37
  • 68
  • This doesnt give me sources and java doc so when I hover over something it says what it should.. for when using google api stuff – Vnge Feb 25 '13 at 01:10