如何获取android源码及如何在eclipse中查看源码

 

1、下载android源码:

Android2.3: http://lizongbo.googlecode.com/files/android_gingerbread_javasrc.zip

Android1.5: http://lizongbo.googlecode.com/files/android_cupcake_javasrc.zip

Android1.6: http://lizongbo.googlecode.com/files/android_donut_javasrc.zip

Android2.1: http://lizongbo.googlecode.com/files/android_eclair_javasrc.zip

  Android2.2: http://lizongbo.googlecode.com/files/android_froyo_javasrc.zip

  Android2.3:http://lizongbo.googlecode.com/files/android_gingerbread_javasrc.zip


2、关联源码:

以2.3为例,我下载2.3源码到了F:\Android_SDK\platforms\android-9下,然后在eclipse中新建一个android project工程,api选的是2.3的,工程新建成功。

打开工程目录,右击Android 2.3.1-->Build Path-->Configure Build Path,弹出对话框,选中Libraries,打开Android2.3.1,再打开android.jar,然后选中source attachment,然后点击右边的edit,然后再点击External File,将F:\Android_SDK\platforms\android-9\android_gingerbread_javasrc.zip选中,然后全部确定。

好了,现在看看ctrl+代码 能不能看到源代码了呢?

其它各个版本都是一样,全部关联进去后就可以看全部的源码了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值