1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.androideur.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
/**
*
* @author David
*/
public class HelloAndroid extends Activity {
// http://www.androideur.com/tutoriel-android-hello-world
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
// ToDo add your GUI initialization code here
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
} |
Partager