Summarized steps to create and run heloworld application
- Install Android SDK
- Install ADT Eclipse plugin
- Create an Android Virtual Device (AVD)
- Create Android Project with Eclipse (Wizard)
- Code it…
- Start it in Android Virtual Device (AVD)
package pkg;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloWorld extends Activity {
/**
Called when the activity is first created. */
@Overridepublic void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView text = new TextView(this);
text.setText("Hello World");
setContentView(text);
}
}
Run it as android application and press Home button, the HelloWorld Project will be Successfully installed on ADV.
No comments:
Post a Comment