Created
November 30, 2011 20:21
-
-
Save league/1410641 to your computer and use it in GitHub Desktop.
onCreate
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
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
final TextView tv = (TextView) findViewById(R.id.hello_message); | |
Button b = (Button) findViewById(R.id.button1); | |
b.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View v) { | |
tv.setText("Thanks for visiting!"); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
testing comment