Steps to Create Above like HelloWorld Application in Android
- Create New > Android Application in Eclipse android will create all necessary files and configuration.
- Give name of your application HelloWorld as per java standard
- Modify Your main.xml file as given below
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:textSize="30dp" android:text="Hello world" /> </RelativeLayout>
- Now Build and Run project in Android Virtual Device(AVD)