Sunday, December 2, 2007

Say Hello To The World

Today I will show you the easiest app. It can be nothing else than a "Hello world!!" program :). The code is taken from Google's official Android website.
public class HelloAndroid 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);
}
}