MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

android笔记

Posted on 2010-02-10 01:55 leekiang 阅读(999) 评论(0)  编辑  收藏 所属分类: android
环境为eclipse3.6.1,jdk1.6
从android2.0开始,Android SDK被分为两部分:SDK启动程序软件包和SDK组件。
1,下载SDK启动程序软件包
   从http://androidappdocs.appspot.com/sdk/index.html下载android-sdk_r08-windows.zip,解压到E:\android-sdk-windows,然后把"E:\android-sdk-windows\tools;"加到环境变量的path里。
2,下载SDK组件
   可以在线安装(点击SDK Manager.exe),也可以手动安装。
   下载android-2.1_r01-windows.zip,解压到E:\android-sdk-windows\platforms\android-2.1_r01-windows,这样就手动安装了android-2.1_r01。
3,安装GEF,eclipse->Help->install new software->add按钮,输入名字gef,输入地址http://download.eclipse.org/tools/gef/updates/releases,点击ok,然后选择与当前eclipse版本相适应的gef,我把二级目录全部选中并安装了。
   如果不安装GET,在接下来的第4步安装时会报“ requires 'org.eclipse.gef 0.0.0' but it could not be found”错误。
4,安装ADT。我使用的是离线安装的方式。
   下载ADT-8.0.1.zip,下载地址为http://androidappdocs.appspot.com。
   安装步骤:eclipse->Help->install new software->add->Archive选择ADT-8.0.1.zip->OK
5, 使用SDK Manager.exe在线安装“Android SDK Platform-tools, revision 1”。不装在使用ADT时会报“SDK Platform Tools components is missing”。
6,在eclipse->Window->Preferences->Android中配置SDK路径为E:\android-sdk-windows
7,安装AVD(Android Virtual Devices)
   打开"SDK和AVD管理器",点击Virtual devices,然后在右边点击new按钮,输入名字,选择一个Target,然后填写SD Card的大小为64Mib,其他均为默认。
8,把SDK的tools和platform-tools目录都要加到PATH
9,新建一个android项目,注意把Min SDK Version设为7。项目建好后,可右击项目名然后点击Run As->Android Application,第一次运行需等待几分钟。


注:
1,E:\android-sdk-windows下的SDK Manager.exe可打开"SDK和AVD管理器",eclipse->window下拉菜单里的链接也可以打开,但比前者要少Settings设置项。
2,If you are developing in Eclipse with ADT, note that SDK Tools r8 is designed for use with ADT 8.0.0 and later. After installing SDK Tools r8, we highly recommend updating your ADT Plugin to 8.0.0.
Also note that SDK Tools r8 requires a new SDK component called Platform-tools. The new Platform-tools component lets all SDK platforms (Android 2.1, Android 2.2, and so on) use the same (latest) version of build tools such as adb, aapt, aidl, and dx. To download the Platform-tools component, use the Android SDK Manager, as described in Adding SDK Components
Upgrading from SDK Tools r7:
If you are upgrading to SDK Tools r8 from an earlier version, note that the the default installed location for the adb tool has changed from <SDK>/tools/adb to <SDK>/platform-tools/adb. This means that you should add the new location to your PATH and modify any custom build scripts to reference the new location. Copying the adb executable from the new location to the old is not recommended, since subsequent updates to the SDK Tools will delete the file.
3,感觉自己的安装步骤有点乱,下次改一下:先装SDK启动程序软件包即SDK tools,通过SDK tools安装android-2.1_r01和Android SDK Platform-tools,设置环境变量,然后才安装ADT。
4,权威的安装步骤见http://androidappdocs.appspot.com/sdk/installing.html
5, 由于模拟器每次启动都比较慢,我们可以在打开模拟器之后不要再关闭,这样每次运行Android应用 ADT就会自动使用这个模拟器,这样就不用每次都启动了

安装相关:
http://www.cnitblog.com/gyn/archive/2008/03/17/41038.html
http://emck.avaw.com/?p=62
http://shizukyo.javaeye.com/blog/254124
http://www.hiapk.com/bbs/thread-123617-1-1.html
http://www.eoeandroid.com/thread-14174-1-1.html
http://zhengtao620.blog.163.com/blog/static/1621465472010105111530403/
http://apps.hi.baidu.com/share/detail/15798968


  在Google Android平台上运行Berkeley DB Java Edition

DroidDraw 是一个基于Java Swing的Android界面设计器,我们可以通过它来生成复杂的 Android Layout XML文件



只有注册用户登录后才能发表评论。


网站导航: