Created
May 23, 2010 13:20
-
-
Save tily/410928 to your computer and use it in GitHub Desktop.
hello android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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