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项目,修改代码如下:

package com.boomga;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloWorld extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        TextView tv = new TextView(this);
        tv.setText("Hello, Android");
        setContentView(tv);
    }
}
体验Android
4,最后来欣赏下Android的华丽界面吧:

体验Android


体验Android


体验Android


体验Android


5,Android的系统架构图:
体验Android


本文转自Phinecos(洞庭散人)博客园博客,原文链接:http://www.cnblogs.com/phinecos/archive/2007/11/15/960053.html,如需转载请自行联系原作者

相关文章:

  • 2021-08-19
  • 2021-10-06
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2021-09-09
  • 2021-08-20
  • 2021-06-25
  • 2021-07-26
  • 2021-11-13
相关资源
相似解决方案