Yesterday I wrote a post to explain how to link Android sources in Eclipse. If you use a different IDE, probably you can't have Eclipse facilities but it may be easier to have the sources "in line" with the android library.

For myself usage I packed the android sources into some jar files. To have them linked properly in Eclipse, you need to download them and unpack in the proper directory under the Android SDK.

Here the files and the folder where they should be unpacked.

  1. android-sdk-1.5_r3-src.jar unpack to ANDROID_SDK_HOME/platforms/android-3/sources
  2. android-sdk-1.6_r2-src.jar unpack to ANDROID_SDK_HOME/platforms/android-4/sources
  3. android-sdk-2.0.1_r1-src.jar unpack to ANDROID_SDK_HOME/platforms/android-6/sources
  4. android-sdk-2.1_r1-src.jar unpack to ANDROID_SDK_HOME/platforms/android-7/sources

You don't need to unpack the files if you don't use Eclipse, as probably your IDE is able to reference source-jars for libraries in the CLASSPATH.

Very soon Android 2.2 will be released, you can build the source-jar with the utility I published yesterday, that is a bash script which runs in OSX and hopefully on Linux as well (the "find" utility may differ a little bit on Linux). Drop me a comment here, if you have problems, and I will pack it for you.


4 Responses to “Android.jar sources”  

  1. 1 therealalquimista

    Nice. Thanks for this. You’ll see a trackback from me very soon.

  2. 2 Shervin Asgari

    Hi.

    2.2 is now out. Where do you get the src?

  3. 3 MEGirl

    Hey I have an HTC EVO and need to upload a .jar file/application. It wont allow me to. Help!

  4. 4 MEGirl

    Oh it’s running android 2.2 btw.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



Calendar

May 2010
M T W T F S S
« Apr   Jun »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening