Program::
HellowordActivity.java:
package example.Helloword;
import android.app.Activity;
import android.os.Bundle;
public class HellowordActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Main.xml::
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Week10" />
<TextView
android:id="@+id/textView1"
android:layout_width="194dp"
android:layout_height="wrap_content"
android:text="HelloWorld" />
</LinearLayout>
Output:
Program Executed By:: Jyothi