Guangzhou

Visit VisitCHN.com - China news, weather, business, travel, language courses

ABC links

Android安装以及Eclipse插件(Google Android) ,在Android 中google搜索 博客园界面



(January 11) http://www.handandaily.com





Android是什么       我自己翻译的Android中文文档

本来准备停止几天更新自己的blog,但是由于自己决心学习个google的Android,进行Android开发,所以还需要把一些东西记录下来,对自己以后也有所帮助。

在推出了手机操作系统Android之后,Google正努力加速其普及,据国外媒体报道,Google计划为那些开发出卓越Android应用的程序员提供奖励,奖金金额总计达1000万美元。Android SDK我在今天已经下载过了,
SDK安装首先到到http://code.google.com/android/download.html
下载SDK的压缩包,直接解压到你需要的目录里。里面的Emulator是一个智能手机模拟器。

然后是安装Eclipse的开发插件。

1)在Eclipse的菜单里选择Software Updates > Find and Install...
2)在随后出现的窗口里选
Search for new features to install,然后“下一步”
3)点
New Remote Site
4)在这里随便给这个远程地址输入一个名字(比如Google Android),在下面输入网址
https://dl-ssl.google.com/android/eclipse/,然后点OK,退回到上一级对话框后点“完成”
5)在随后结果窗口中,选择Android Plugin > Eclipse Integration > Android Development Tools,然后“下一步”
6)接受license后再“下一步”,然后“完成”
7)然后点Install All,安装完后重启Eclipse
8)重新启动Eclipse后,在
Window > Preferences... ,选择Android面板,然后后点Browse...把输入SDK的路径就完成了。

调试配置:
Eclipse
1.选择RUN
2.Open Run Dialog
3.选择Android Application
4. New(上面的小白纸).
看我的文档


然后你按照api说的配置run,然后就可以运行了,我运行的界面,在Android中的浏览器中搜索博客园的图片,



English
  1. Start Eclipse, then select Help > Software Updates > Find and Install....
  2. In the dialog that appears, select Search for new features to install and press Next.
  3. Press New Remote Site.
  4. In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL: https://dl-ssl.google.com/android/eclipse/. Press OK.
  5. You should now see the new site added to the search list (and checked). Press Finish.
  6. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next.
  7. Read the license agreement and then select Accept terms of the license agreement, if appropriate. Press Next.
  8. Press Finish.
  9. The ADT plugin is not signed; you can accept the installation anyway by pressing Install All.
  10. Restart Eclipse.
  11. After restart, update your Eclipse preferences to point to the SDK root directory ($SDK_ROOT):
  12. Select Window > Preferences... to open the Preferences panel. (Mac OS X: Eclipse > Preferences)
  13. Select Android from the left panel.
  14. For the SDK Location in the main panel, press Browse... and find the SDK root directory.
  15. Press Apply, then OK

Running and Debugging an Application

Once you've set up the project and launch configuration for your application, you can run or debug it as described below.

From the Eclipse main menu, select Run > Run or Run > Debug as appropriate, to run or debug the active launch configuration.

Note that the active launch configuration is the one most recently selected in the Run configuration manager. It does not necessarily correspond to the application that is selected in the Eclipse Navigation pane (if any).

To set or change the active launch configuration, use the Run configuration manager, which you can access through Run > Open Run Dialog... or Run > Open Debug Dialog....

posted on 2007-11-14 16:56 haix 阅读(4937) 评论(22)  编辑 收藏

评论

#1楼  2007-11-14 17:14 qiushizhu      

有空可以体验下,感觉给人的感觉还很酷的啊   回复  引用  查看    

#2楼  2007-11-14 18:51 Enzo      

智能手机模拟器是Gphone的影子还是iphohe的呢   回复  引用  查看    

#3楼  2007-11-14 20:16 专注.NET开源 [未注册用户]

体验不错~   回复  引用    

#4楼  2007-11-14 22:24 temptation      

博主说:"
下载SDK的压缩包,不需要任何的安装过程,直接解压到你需要的目录里就可以。"




google官方还是建议在 "我的电脑"->"环境变量"里添加路径的   回复  引用  查看    

#5楼  2007-11-15 07:42 zbgreater [未注册用户]

ADT安装后,打开window->preferences->Android,点击Android出现如下的对话框Unable to create the selected preference page(时间*****),Reason:Unable to create the selected preference page.
com/google/android/adt/preferences/AndroidPreferencePage (Unsupported major.minor version 49.0)
怎么解决?谢谢!   回复  引用    

#6楼 [楼主] 2007-11-15 08:22 haix      

你的eclipse安装好了吗?

官方推荐是:Eclipse Europa的   回复  引用  查看    

#7楼 [楼主] 2007-11-15 08:39 haix      

TextView cannot be resolved to a type(Google Android)
当提示这个错误,你只要把鼠标放到红线处,然后Eclipse提示 Eclipse alert Import TextView .

你点一下就可以了!   回复  引用  查看    

#8楼  2007-11-15 09:07 巫云      

google出个东西还得用java来玩,唉,好久不玩java了,又得重新熟悉了。希望出个.net版的SDK。   回复  引用  查看    

#9楼 [楼主] 2007-11-15 09:31 haix      

说的是Java实际上不是java,就一个sdk,
怎么会还有.net的sdk那!
  回复  引用  查看    

#10楼  2007-11-15 10:16 巫云      

这个sdk只是提供java的api接口吧?   回复  引用  查看    

#11楼  2007-11-15 10:41 wangxin [未注册用户]

请教个问题。在安装android plugin的时候在第4步出现了问题,我给的url是http://dl-ssl.google.com/android/eclipse/
显示:
network connection problems encountered during search.
这是怎么回事呢?
多谢。
  回复  引用    

#12楼 [楼主] 2007-11-15 11:23 haix      

http://www.google.com/search?hl=en&q=network+connection+problems+encountered+during+search&btnG=Google+Search   回复  引用  查看    

#13楼  2007-11-15 11:28 wangxin [未注册用户]

谢谢,这样看来不是Google的问题了。可能是我在公司的网络问题。   回复  引用    

#14楼  2007-11-15 13:06 Phinecos(洞庭散人)      

@wangxin
网络问题   回复  引用  查看    

#15楼  2007-11-15 13:07 Phinecos(洞庭散人)      

@temptation
设置环境变量当然更好,不过不设置也是可以使用的   回复  引用  查看    

#16楼  2007-11-15 21:49 volnet(可以叫我大V)      

没有Eclipse是真的   回复  引用  查看    

#17楼  2007-11-17 11:21 Goingmm [未注册用户]

to: zbgreater

JDK 5 or JDK 6 (JRE alone is not sufficient)   回复  引用    

#18楼  2007-11-17 17:25 周行天下      

看了这个感觉为微软公司落后了,windows mobile 根本就没有能力和它竞争   回复  引用  查看    

#19楼  2008-01-02 17:12 FIB [未注册用户]

那这个ADT是不是要单独下载手动安装啊?

--引用--------------------------------------------------
Phinecos(洞庭散人): @wangxin
网络问题
--------------------------------------------------------
  回复  引用    

#20楼  2008-01-17 13:24 hgy [未注册用户]

a href="http://www.rent-cars-cn">租车</a>
<a href="http://www.rent-cars-cn">上海租车</a>
<a href="http://www.rent-cars-cn">汽车租赁</a>
<a href="http://www.rent-cars-cn">上海汽车租赁</a>
  回复  引用    

#21楼  2008-03-02 08:19 小小小 [未注册用户]

Android Editors (0.2.0.200802081635) requires plug-in "org.eclipse.wst.sse.ui".
我到)在随后结果窗口中,选择Android Plugin ——
这一步的时候出现这个
我的SDK已经下载好了
现在不知道怎么弄了   回复  引用    

#22楼  2008-03-10 22:44 gdgd [未注册用户]

Android Editors (0.2.0.200802081635) requires plug-in "org.eclipse.wst.sse.ui".

我也遇到这个问题了!运行不了Android!!
[2008-03-10 22:27:49 - android1] emulator-tcp-5555 disconnected! Cancelling 'Android.hellow' launch!   回复  引用    


标题  
姓名  
主页
Email (博主才能看到) 
验证码 *  看不清,换一张 [登录][注册]
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2008-01-12 09:18 编辑过


相关链接:
 
Visit VisitCHN.com - China news, weather, business, travel, language courses