7

While there seems to be a way to clone the whole repo, described here, I just need just the Java API files, nothing more. (Hint: traffic limit + slow connection)

Now, here is the whole git repo, but where are the plain Java API files? Or are they at a complete different location? Someone an idea? I'm not that much a git expert.

durron597
  • 31,968
  • 17
  • 99
  • 158
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103

3 Answers3

10

I have no idea what you think "the plain Java API files" are.

The second link is not a git repo. It is a family of git repositories. Each row in that table is one git repo. The first link is for instructions on how to use Android-supplied tools to clone all of those repositories.

If you think "the plain Java API files" refer to the java.* and javax.* classes, they are from the libcore repo.

If you think "the plain Java API files" refer to android.* classes, they are from the frameworks/base repo.

Other repos may be contribute other portions of "the plain Java API files", such as Apache HttpClient.

If all you are trying to do is poke through the code, I recommend Google Code Search. For example, I refer to the Android source code frequently, and I don't have it downloaded.

[Edit] And if all you want to do is develop android applications, you don't need any of this; just download the SDK

kevin
  • 807
  • 3
  • 11
  • 20
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • Thank you for the hints to the locations! I want to browse the code offline (and fast) and use it in Eclipse (to display it), that's why I needed the sources offline. – java.is.for.desktop Jun 11 '11 at 23:34
3

Following worked, with the help of this question:

git clone git://android.git.kernel.org/platform/frameworks/base.git
cd base
git tag -l
git checkout android-2.2.2_r1

And then we get a nice directory: core/java/android

tar cjf android-java-2.2.2.tbz2 core/java/android

And then we get a nice bzip2-ed archive: android-java-2.2.2.tbz2, just 1.8MB ;)

Community
  • 1
  • 1
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103
  • nope, it doesn't include classes from Java (like ArrayList, etc.), it only has Android specific classes. – kevin Mar 25 '14 at 05:14
0

If u just need to see or download a specific JAVA API file from android.. then just refer this site

http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/

this is has repo of all android release.

Naveen Murthy
  • 3,661
  • 2
  • 21
  • 22