体验Android
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项目,修改代码如下:
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);
}
}
4,最后来欣赏下Android的华丽界面吧:
5,Android的系统架构图:
![2007111511.png](/images/cnblogs_com/phinecos/070925/2007111511.png)
作者:洞庭散人
出处:http://phinecos.cnblogs.com/
posted on 2007-11-15 10:42 Phinecos(洞庭散人) 阅读(568) 评论(0) 编辑 收藏 举报