Merge pull request #78 from elektronikLexikon/master
add Android hello world app
This commit is contained in:
16
a/android.java
Normal file
16
a/android.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user