Android Studio How To

Android Development Tutorial 3: Starting with First App

android app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development software
Written by sameerkakde

Android Development Tutorial 3: Starting with First App

In last article we have learned about different components of Android Studio IDE. Today we are going to learn about different options available in Android Studio IDE and their functionalities. As we learned earlier to start a new Android Studio project click on “Start a new Android Studio Project” option as shown in the below figure. A new window will open as in the right side image.

android app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development softwareandroid app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development software

In the first textbox asking your Application name put the name you want to give to your application. In the next textbox asking Company domain put the name of your company or input any random name you want to give to your company if you don’t have any company name registered. Next textbox asks for the location where you need to store your current building project. We suggest you to change the location to somewhere you can easily access. Package name below will be automatically generated using the application name and company name you have provided above. Further there is two checkboxes asking for including c++ support and asking for including Kotlin support. If you want to make a project which would contain some c++ programming then you can check this checkbox otherwise leave it as it is. Next checkbox is for Kotlin support and for those who don’t know what is Kotlin? Kotlin is a programming language from Google for building Android applications. It generally replaced Java and can be used in place of java in you Android project. So if you want to program in Kotlin check this checkbox otherwise don’t as you will not be familiar with Kotlin. Now after above all click “Next”. After that a new window will pop up as shown in below screenshot:

android app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development software

In this window the first option is to select the platform for which you are developing this Android application. Other than smartphones android is also used as an operating system in Wearable devices like smartwatches and in Android TVs from Sony, in Android things like google glasses etc. So if you want to make an application for smartphones check the first checkbox. Then you need to select a base android version for which you are developing this application. We suggest you to use Android 4.4 as most of the devices running don’t get regular updates and are still at Android KitKat or Lollipop. Keeping it is beneficial for you as most of the people will download and use your application as it is supported in their system.

ALSO READ: Android Development: Installation of Android Studio

The second option is Wear and it stands for Wearable device like Smartwatches. If you want to develop application for smartwatches check this checkbox.

Third option is Android TV and there is shortage for Android TV application developer as most of the smart TVs are moving towards Android as an operating system. So more and more applications are needed for its better performance. Last 4-6 options are not commonly used as you might not be interested in Google glasses or won’t be able to purchase one. Also developing applications for it doesn’t make any sense as very less number of people are using google glasses. After that click next. The below given window pops up.

android app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development software

In this window you are asked to add an activity to mobile. This is basically the layout you see when you open any application in your smartphones or any android device. You can see there are many options available like Basic Activity, Bottom Navigation Activity, Empty Activity and many more. If you need to start with a basic view and don’t want any customized one go with the Basic Activity option. Note that this will have a yellow coloured floating circle fig. at the bottom. This can be used as navigation or you can personally customize what this button does. If you want to have on screen navigation with your application select Bottom Navigation Activity. It will have buttons to go back, jump to home and to load menu. If you want a completely empty screen and want to customize and add each buttons and interface yourself click here. Further you can see options like Google Maps Activity used when you need to make a navigation application. Other one is Login page activity which directly gives you a login page to input username and password. You can find many and we will explain it further when we will work on them. Now for our first application select Empty activity and click next. A new window as shown in he below screenshot will pop up.

ALSO READ: Android Studio Tutorial 2: Understanding the IDE

android app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development software

This is the final window you want to face before entering the basic User Interface of Android Studio IDE. This window asks for Activity Name which is same as the file name that you give to the main class file you make in java. So give it an appropriate name as a file with the same name will be generated in your project so that you can work on it. Let the generate layout file checkbox be selected as it generates a layout file default for you. Layout file is an XML file on which you are going to put the components of your application like button, textbox, Text View etc. Give an appropriate name to the Layout file too. Let the backward compatibility be on as it helps to reverse the problem and make it supported by adding certain files. After all that click on Finish. That’s it now your Android Studio will built a new project with all necessary file for you.

android app development course for beginners, learn android programming step by step, android app development tutorial beginner, android tutorial for beginners with examples, android studio tutorial, android app development software

In our next tutorial we will learn the options and feature available for you in Android Studio IDE and edit out first Android application.

Leave a Comment

error: Content is protected !!