In this post I will continue going over Android Studio and finish with a simple “Hello World” app.

If you haven’t already, please go over the Part 1 of this intro series before this one.

main

As you can see in the image above there are two main windows that open up once you’re done with the part1. On the left side you have different modes to display your project files and on the right side is the editor with the currently opened file which happens to be MainActivity.java in our case which is also the default name for activity file (we will go over activity files in the later posts).

Project Modes

mode

Modes are different ways that Android Studio can display the structure of your project or files. Usually project mode is the preferred mode for most developers and that’s what I’m going to use here.

structure

Above you can see the file structure of project mode. The src folder will contain most of your files including the activity files and layout files.

activity

On the right side you have editor that lets you edit your files and also the layout editor. Let’s switch to layout editor by clicking on activity_main.xml.

layout

Layout editor is where (as the name suggests) you can visually design the layout of your app. You can drag and drop various visual elements from the palette and edit their properties in the window on the right.

As you can see I have the “Hello World” text added to my app.

Emulator

Emulator is basically how you emulate a phone or any android based device to test your app.

Follow the gif below to open an emulator.

main2

Now we will build and launch our emulator.

main22

Once launched your emulator should look like below.

emualtor

Now we are ready to build and launch our first “Hello World” app. Click on the green button as shown below to build and launch your app in emulator.

launch

 

A window will pop up, click ok and after a few seconds or minutes depending how fast your computer is your app will load up in emulator as shown below.

emualtore

hello

There it is your first ever android app.

I hope you enjoyed this post, please let me know your comments or concerns in the comments below. We will start building some more exciting apps in the future posts.

 

 

2 thoughts on “Introduction to Android Studio – 2

  1. Jatin SIngh says:

    I am currently using Android Studio 2 to developing an App.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.