Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package android.HelloWorld;
- import android.app.Activity;
- import android.os.Bundle;
- import android.widget.TextView;
- public class HelloWorld extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- TextView txt = new TextView(this);
- txt.setText("Hello World!!");
- setContentView(txt);
- }
- }
Add Comment
Please, Sign In to add comment