Manage Android source code like sourceinsight in MotoDev Studio or Eclipse

I run motodev studio 1.3 and could not make a Java project from exist souce code.  here is an alternative ways to do so.

 

1.  Compile the Android project

 

cd /path/to/android/root

make # and wait a while, if you haven't done this

(Any problem, Refer to http://blog.csdn.net/pengmens/archive/2010/11/02/5981762.aspx )

 

 

2. Make the "Java build path"

 

cd your_android_root_path

cp your_android_root_path/development/ide/eclipse/.classpath ./

chmod u+w .classpath # Make the copy writable 

 

3. Download eclipse 3.5 and untar the download file

4. run eclipse

     1). If Eclipse asks you for a workspace location, choose the default

     2). If you have a "Welcome" screen, close it to reveal the Java perspective.

     3). File > New > Java Project

     4). Pick a project name, "AndroidSourceProject" or anything you like.

     5). Select "Create project from existing source" (MOTODEV hasn't the choice), enter the path to your Android root directory, and click Finish.

     6).Wait while it sets up the project. (You'll see a subtle progress meter in the lower right corner.)

 

Here, you can navigate code inside the new created "AndroidSouceProject".

 

Of course, you can create new android project, when you try to "Open Declaration" after you right clicked at method/class, there would be a page lead you to make the AndroidSouceProject as link source.

 

 And more, if you close the eclipse and run motodev with same workspace, sure their would be same.

 

Reference: https://sites.google.com/a/android.com/opensource/using-eclipse

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值