Hello World Example in Android
In this tutorial we will see how to create Hello World Example application in android using Android Studio. Here we will use TextView widget and print Hello World message.
To begin with Hello World Example application start Android Studio and you will see message Welcome to Android Studio message. We will create new application so we will select “Start a new Android Studio project”.
Follow the steps to create Hello World program
Now you can see many small activities. To begin with we will select Empty Activity and press Next. This will create new blank Activity.
Now enter you name in Name box. Example – Hello World
- In Package name put you package name. Example – com.androidaura.helloworld
- Next select location where this project should be saved.
- In Language specify in which language you will be programming. Example we will select “Java” here.
- Select minimum API Level to begin with. Example we have selected API 21: Android 5.0 (Lollipop)
Click on Finish button once done.
Once you created an application two files will be generated.
MainActivity.java is a class file in which you will write java program.