Created
January 28, 2011 19:02
-
-
Save gaurish/800750 to your computer and use it in GitHub Desktop.
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 com.gaurish.helloandroid; | |
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); | |
setContentView(R.layout.main); | |
TextView tv = new TextView(this); | |
tv.setText("android needs this much code just to display a hello world message, so Hello Android"); | |
setContentView(tv); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment