在期待中,Google终于发布了gPhone,而且同时也公布了gPhone的SDK。真是令人兴奋。对于移动开发又多了一个方向,有Google的支持,gPhone的手机操作系统定会有很多的开发者去支持。Linux系统会随着Andriod的发布,进一步提高市场的使用率。
想开发gPhone,先去下载Andriod SDK.
http://code.google.com/android/download.html
gPhone应用是基于Java的,提供了Andriod一套库。
还要下载JDK 1.5 或者1.6
再安装Eclipse IDE
最后在Eclipse IDE中更新得到Andriod Develop Tools.
具体参考Google官方网站。
http://code.google.com/android/intro/installing.html#developmentrequirements
开始开发第一个HelloWorld程序,看google官方的
http://code.google.com/android/intro/hello-android.html
贴一下我自己写的测试代码
TextView st = new TextView(this);
st.setText("这是我的第一个Andriod helloword程序,Android居然还支持中文。");
st.setTextSize(30);
st.setTextColor(0xFF00FFFF);//32位RGB颜色,最高位永远位FF.其余跟Windows 上的RGB(XX,XX,XX)对应。
setContentView(st);