Android Hello world example using Android Studio

In previous post, we have setup android studio and SDK. In this post, we will create Android hello world app.
Once you are done with Android studio download and installation, you will see below screen.

Start new Android project

Click on “Start a new Android studio project”. You will see below screen.

Create New Android Project

Application Name : You need to provide name of application.
Company Domain : If you have your domain, you can put it here.
Package name : Package name should be unique. When you publish your application with google play store, google play store distinguishes your app by package name only.

Click on Next after filling above form.

Choose Phone and tablet

Choose “Phone and Tablet” and select Minimum SDK, you want to support for your application.
Click on Next and you will see below screen:

Choose Android Activity

It is activity selection screen. We will choose “Empty Activity”. It should be good enough for our hello world project.
Click on Next.

Customize Activity

Activity Name : It is name of Activity , you want to create. I have put it as “HelloWorldActivity”.
Layout Name : When Android studio create activity for you, it also create layout xml file which binds with the activity.
Don’t worry , if you do not understand about it much, I will write separate post to explain Activity.
Click on Finish. You will get below screen.

Created Android Hello world

Run Hello World App :

Lets run the app now.
Go to Run – > Run ‘app’ , you will see below screen.

Select AVD screen

We are going to create Android Virtual Device to demonstrate create android app.
Click on “Create New Virtual Device” , you will see below screen.

Choose Android Hardware

Choose suitable android configuration on which you are going to test your application. Click on next.

Download System Image

Here we are going to select System image, you may not have downloaded system image, so you can download by clicking on link.
When you click on download, you will see below screen.

Download Android Virtual Device

It will download system image, once done click on Finish. You will see below screen.

Android Virtual Device

You can provide name to your AVD. Click on Finish.

Nexus 5 API 25

Choose downloaded AVD and click on Ok.
You will see an additional app started.

Android Hello World Screen

Bingo!! we have successfully create Hello world Android App. Don’t worry if you do not understand much yet, I will explain about Activity and Android folder structure which will help you to understand created android app.


import_contacts

You may also like:

Related Posts

  • Python check for null
    17 November

    How to check for null in Python

    Table of ContentsHow to check if a variable is NULL in Python?Using the is operator to check if a variable is NULL in Python.Using the if condition to check if a variable is NULL in Python.Using the not equal to operator to check if a variable is NULL in Python. This article demonstrates the different […]

  • Split String with multiple delimiters
    17 November

    Split String With Multiple Delimiters In Python

    Table of ContentsSplitting a string in PythonWays to split a string in PythonUsing the split() and replace() functionsUsing the regular expressions In this post, we will see how to split String with multiple delimiters in Python. Splitting a string in Python When we talk about splitting a string, it means creating a collection of sub-strings […]

  • Funny Kahoot names
    17 November

    600+ Funny, Dirty, Inappropriate Names for Kahoot

    Table of ContentsFunny Names for KahootKahoot: A Brief OverviewHow to Change your Name on Kahoot?Funny Names for Kahoot: Overall EditionFunny Kahoot Names: Girls EditionFunny Names For Kahoot: Boys EditionFunny Names for Kahoot: Unique EditionFunny Troll Names for KahootFunny Inappropriate Names: Dirty Kahoot namesGood Kahoot NamesFunny Inappropriate Names: Set 2Frequently Asked Questions About Funny Names for […]

  • Funny steam names
    17 November

    600+ Funny Steam Names to Use in 2021

    Table of ContentsFunny Steam Names: Let’s Enhance your Steam Profile by Giving it a New NameAssigning Funny Steam Names:Step-By-Step Guide200+ Funny Steam Names70+ Cool Steam Names90 Good Steam Names50 Clever Steam Names30 Funny Steam Names For Boys35 Funny Steam Names For Girls25 Creative Cool Steam Names100+ Other Funny Steam Names to Consider in 2021Deleting Previous […]

  • Sort dictionary by value in Python
    17 November

    Sort dictionary by value in python

    Table of ContentsHow to sort sort dictionary by value in Python?Using for loop along with the sorted() function.Using the sorted() function to sort dictionary by value in Python.Using operator.itemgetter() function to sort sort dictionary by value in Python.Using lambda function to sort sort dictionary by value in Python.Using the OrderedDict() method to sort sort dictionary […]

  • Get class name in Python
    17 November

    Get class name in Python

    Table of ContentsHow to get the attributes of an object?Get Class name in python using the __class__ attribute Get Class name in python using type() functionConclusion While working with objects in python, several times we need to get their class name. In this article, we will discuss several ways to get the class name of an […]

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.