Android SDK 2.2 开发环境安装
2010-05-26 06:21:00 来源:WEB开发网import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
3)运行
ADT 使运行非常简单:
选取 Run > Run.
选取 "Android Application".
(Hello World, 参见:http://androidappdocs.appspot.com/resources/tutorials/hello-world.html )
附:Android SDK release number:
Android SDK 2.2 Revision 1 (May 2010) API Level: 8 Requires SDK Tools r6 or higher. FroYo
Android SDK 2.1 Revision 2 (May 2010) API Level: 7 Requires SDK Tools r6 or higher. Eclair
Android SDK 2.1 Revision 1 (Jan 2010) API Level: 7 Requires SDK Tools r6 or higher. Eclair
Android SDK 2.0.1 API Level: 6 Requires SDK Tools r6 or higher. Eclair
Android SDK 2.0 API Level: 5 Requires SDK Tools r6 or higher. Eclair
Android SDK 1.6 Revision 3 (May 2010) API Level: 4 Requires SDK Tools r6 or higher. Donut
Android SDK 1.6 Revision 2 (Dec 2009) API Level: 4 Requires SDK Tools r6 or higher. Donut
Android SDK 1.6 Revision 1 (Sep 2009) API Level: 4 Requires SDK Tools r6 or higher. Donut
Android SDK 1.5 Revision 3 (Jul 2009) API Level: 3 Requires SDK Tools r6 or higher. Cupcake
Android SDK 1.5 Revision 2 (May 2009) API Level: 3 Requires SDK Tools r6 or higher. Cupcake
Android SDK 1.5 Revision 1 (Api 2009) API Level: 3 Requires SDK Tools r6 or higher. Cupcake
Android SDK 1.1 API Level: 2
Android SDK 1.0 API Level: 1
更多精彩
赞助商链接