1,首先到到http://code.google.com/android/download.html下载SDK压缩包,直接解压到你需要的目录里。里面的Emulator是一个智能手机模拟器。
2,然后是安装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,退回到上一级对话框后点“完成”
6)接受license后再“下一步”,然后“完成”
7)然后点Install All,安装完后重启Eclipse
8)重新启动Eclipse后,在Window > Preferences... ,选择Android面板,然后后点Browse...把输入SDK的路径就完成了。
3,然后开始写个HelloWorld测试下,建立一个Android项目,修改代码如下:
importandroid.app.Activity;
importandroid.os.Bundle;
importandroid.widget.TextView;
public class HelloWorldextendsActivity{
/* *Calledwhentheactivityisfirstcreated. */
@Override
public void onCreate(Bundleicicle){
super.onCreate(icicle);
TextViewtv = new TextView( this );
tv.setText( " Hello,Android " );
setContentView(tv);
}
}
4,最后来欣赏下Android的华丽界面吧:
5,Android的系统架构图:
