Skip to content

Instantly share code, notes, and snippets.

@tily
Created May 23, 2010 13:20
Show Gist options
  • Save tily/410928 to your computer and use it in GitHub Desktop.
Save tily/410928 to your computer and use it in GitHub Desktop.
hello android
package cc.omora;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("hello, android");
setContentView(tv);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment