Merge pull request #78 from elektronikLexikon/master

add Android hello world app
This commit is contained in:
Mike Donaghy
2012-06-10 10:56:34 -07:00

16
a/android.java Normal file
View File

@@ -0,0 +1,16 @@
package com.example.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);
TextView tv = new TextView(this);
tv.setText("Hello, World");
setContentView(tv);
}
}