Skip to content

Instantly share code, notes, and snippets.

@gaurish
Created January 28, 2011 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaurish/800750 to your computer and use it in GitHub Desktop.
Save gaurish/800750 to your computer and use it in GitHub Desktop.
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