Android Studio tutorial for beginners

There are various ways to access Android Development but the most official and powerful way is to use Android Studio. This is the authority IDE (Integrated Development Environment) for the Android platform, developed by Google and it is used to make majority of the applications that you use on a daily basis.


Android Studio was first announced at a Google I/O conference in 2013 to the general public in 2014 after various beta versions.

Android studio makes life much easier to create a software, but it is still a little progressive to be able to claim a completely intuitive and smooth experience. For complete beginners, there are quite a lot to learn here. Many of the information are available even through the official channel is out of date.

In this article, Android training in Chandigarh will explain a bit more about the features of Android Studio, and I will explain the necessary basic functions starting at the beginning. I would like to try and make everything as easy as possible. Hopefully this will be the first step in your trip to Android development.

So just what is Android Studio?

If you do not have coding experience so far, what will be the role of Android Studio development … What is IDE anyway?

As an IDE, Android Studio’s work is to create an application and provide an interface for handling most of complex file management. The programming language you use is Java, which will be installed separately on your machine. Android Studio is the place to create, edit and save the project and the files that make up that project. At the same time, Android Studio provides access to the Android SDK or “Software Development Kit”.

Considering this as an extension of Java code, you can run Java code smoothly on an Android device and utilize native hardware. You need Java to write the program, but the Android SDK is necessary to run the program on Android, Android Studio is doing the job of putting it all together for you. At the same time, in Android Studio you can also run code via the emulator or the hardware connected to the computer. You can also solve problems more quickly by “debugging” the program during execution and getting feedback such as crashes.

Android studio makes life much easier for the experts or developers but it is still a little progressive to be able to claim a completely intuitive and smooth experience. Google has done a lot of work to make Android Studio as powerful and useful as possible. For example, it is common to provide live hints during coding, suggest necessary changes to correct errors or make coding more efficient. For example, if a variable is not in use, it will be highlighted in gray. When you start entering the code, Android Studio will display a list of auto-complete suggestions to help you with completion. If you do not remember the correct syntax or want to save time it can help you with that.

Setting up

Android Studio settings are pretty easy, as almost all are bundled in one installer. Downloading the Android Studio, Android SDK, SDK Manager etc. All you need is the Java Development Kit that you can download here. Remember, Android Studio is your window to Java!

In addition to following simple instructions during installation, you need to set up an Android platform for development. Please check the box and tell the installer that you also need an Android SDK and make note of Android Studio itself and where the SDK is installed. These are the defaults chosen for installation.

Select the SDK directory without spaces. The AppData folder that Android Studio selected here is a hidden folder of Windows. In other words, if you want to browse using Windows Explorer, you need to select Show hidden folders.

Start a new project

After Android Studio launches you will want to join a new project and create a new project. You can do this by starting Android Studio and choosing New Project or by selecting ID> Project> New> New Project at any time from the IDE itself.

Next, there are opportunities to choose from different types of activities. Activities effectively become “screens” in the app. In some cases, this will be the whole application or some other thing. Applications may move from one screen to the next. You can start a new project with no activity freely (in that case select “Add Activity”). In most cases, you need one instance, so if you set something similar to whitespace to Android Studio, you will first use the app template.

In most cases, choose “Basic Activity” which is the default look and feel of the new Android App. This includes a menu in the upper right corner and a FAB button – a floating action button – which includes design choices that Google is trying to encourage.
Please choose the option that is most suitable for the application which is kept in mind as to building. This will affect the type of file displayed the first time you start up. At this point you can also select the name of the app, the minimum number of Android SDK you want to support, and the package name. The package name is the final file name of the application when uploading the application to the Play Store (a combination of the application name and the developer’s name).

What are all these files?

I remember my first time using Android Studio (well, Eclipse) was quite difficult compared to previous programming experience. For me, programming was to enter it in one script and then run that script. Android development is quite different, but it contains various files and resources that need to be structured in a specific way. Android Studio makes it clear that it is difficult to know where to start from!

The main ‘code’ will be a Java file with the same name as your activity. By default, this is Main Activity.Java, but it may be changed when you set up the project for the first time. Enter the Java script here and define the behavior of the application. However, the actual application layout is completely handled with different code. This code is a file called activity_main.xml. XML is a markup language that defines the layout of a document as well as the HTML used to create the website. It is not really “programming” but a kind of code.

Therefore, to create a new button, if you want to edit activity_main.xml and describe what happens when you click the button, place that button in MainActivity.Java. However, to make it a bit more complicated, you can actually define the layout of Java scripts (called classes) using XML files. This is set in the next line at the top of the Java code.
select all
setContentView (R.layout.activity_main);
It’s just that Android Studio instructs this script to set the layout in activity_main.xml. In other words, you can theoretically use the same XML file to set the layout of two different Java classes.

In some cases, there are actually multiple XML files that describe various aspects of the layout of the activity. For example, if you select “Basic Activity” instead of “Empty Activity”, there is activity_main.xml that sets the position of FAB and other UI elements, and content_main.xml that stores the content you want to add. Ultimately, we may add “views” (elements such as buttons, text boxes, lists etc.), but you can also use your own XML layout.

Finding your way around

As you can see, the Android application actually consists of multiple files. It is the Android Studio obligation to manage all of these in one place. The main window on the right side of the screen displays individual scripts and files, and the upper tab can switch between open ones at any time.

New sky activity, I love the smell of the possibility in the morning!
To open a new one, you can do it using the left file hierarchy. Here you can find all folders and folders in them. Your Java file will be stored under java, then the package name of your application will be stored. Double-click MainActivity.Java and it will be displayed in front of the right window.

When editing an XML file, two tabs are displayed at the bottom. This allows you to switch between ‘Text’ view and ‘Design’ view. In the text view, you can directly modify the XML code by adding and editing rows. In the Design view, you can add, delete, and drag individual elements on the screen to see what they look like. The text view also has a preview window to visualize what is being created. However, as long as the width of the monitor is sufficient.

More types of files

Another useful folder is ‘res’ folder. This is an abbreviation for ‘resource’, which contains ‘drawable’ and ‘layout’ with XML file. Everything in the resources folder must be lowercase. Because underscore is often used to distinguish camel ‘s capital letters from lowercase letters, in order to divide file names into easy – to – read titles.
‘Values’ contains an XML file (such as application name and color value) that holds the value of the variable.

AndroidManifest.xml is a very important file in the ‘manifests’ folder. The task is to define important facts about the application, such as which activities are involved, the names of the apps as seen by the user, and the authority of the application.
You can create Java classes, XML files, or activities as a whole at any time to add functionality to your application. Right-click on the relevant directory, select “New” and select the directory you want to add. You can also right-click and select “View in Explorer” to open the project directory. This is useful, for example, if you want to edit an image.

Meet Gradle

Android Studio tries to keep nice and simple things for users by providing all necessary tools and functions in one place. When things need to interact with some of these other elements, it becomes more complicated.

For example, there is something called “Gradle” at Android studio. This is basically a “build automation tool” that helps Android Studio make all different files into one APK. In most cases you need to leave it to Gradle, but if you want to add a new ‘dependency’ that enables advanced features of your application you need to jump to the build.gradle file. In some cases, you can select Build> Clean up Project if work stops. This basically reconfirms the location and role of all files. Normally, there are two of these Gradle build files, one for the whole project and one for ‘module’ (application).

Debugging, virtual devices and the SDK manager

When you are ready to test the app, you have two options: One runs on the physical device and the other creates and tests the virtual device (emulator).
It is easy to do it on your device. Just by plugging in via USB, please make sure that USB debugging and installation from unknown source is allowed by mobile phone settings, press the top green play button, or press “execute> application Please press “execute”.
A message will be displayed telling you that the Gradle build is running (that is, the code is a complete app), then you should be active on the device. Thanks to the instant run feature, it is faster than ever.

While your app is running you can receive live reports from the ‘logcat’ tab of the Android monitor in the bottom half of the screen. If something goes wrong and the application crashes or stops responding, red text will be displayed and a description of the problem will be displayed. You may forget your permissions or you may not be able to fix it easily. It essentially saves time compared to blindly guessing what went wrong. Please filter the type of message displayed here.

You can switch to the monitor tab and display useful information such as CPU usage rate. The Android Device Monitor further advances this monitoring, monitors everything at once, and has a convenient UI.

AVD Manager

There is nothing I would like to develop for Android without some Android device you own. But one of the biggest challenges for Android developers is fragmentation. In other words, your application needs to work even on 10 – inch and 15 – inch devices, not enough to work on your device. It also needs to work with devices running older versions of Android and even very weak devices.
This is where Android virtual device is located. It is essentially an emulator that mimics the appearance and performance of other Android devices and can be used to set screen size, power, Android version, etc.

To use a virtual device, you first need to download the necessary components, build the virtual device by setting the specifications as necessary.
Select the hardware and choose the Android platform to run. If the Android version you want to run has not been downloaded yet, that option will be displayed next to it.

Once you have set up your device, you can select one of them and debug it the same as a physical device when you run the application. However, running a virtual device requires considerable specs. I can not run it on Surface Pro 3, but my MSI GT72VR 6RE can run in a fairly fast acceleration mode. If you are wondering, you can treat this as any other emulator and access the Play store to download the app. If you have hardware, it is possible to run several apps on a Windows PC!

The SDK Manager

If you are targeting a specific version of Android, or if you want to create a virtual device that will run a specific version, you will need to download the required platforms and SDK tools. This can be done using the SDK manager. This tool is displayed when you select [Tools]> [SDK Manager]. We also provide additional features for use with apps like Google Glass Development Kit and Android Repository.

Please check the box next to what you want to download and click “OK”. Android Studio warns you from time to time when it is time to update the IDE itself, or any of these elements. Please keep it up to date!

Create signed APK

Finally, once you are ready to release to the vast world as soon as the app is tested, select Build> Generate Signed APK. This will provide the files you need to upload to Google Play and will include all of the various files, resources, and so on.

A message prompting you to create or enter a key store is displayed. This is a sort of “authenticity certificate” that proves that the APK you are uploading is the application you are talking about. This will prevent someone uploading a malicious APK as “update” to your app after hacking your Google Play account. You need to keep this file securely. Once you lose it, you can not update the app again. If you want to create releasable ones, select “Release” as the build type and click “Finish”.

The journey is only beginning…

This may seem a lot to do on the board, but in reality it is just hurting the surface of what you can do with Android Studio, when working on a more ambitious project,.
For example, to create a cloud-ready app, you need to start gripping with Firebase. Google made this easier by building support for the IDE itself. Simply select [Tools]> [Firebase], you can start setting up the cloud function. Likewise, you may need to use GitHub, using Git Hub you can back up your application on line, handle version, and perform efficient collaboration.

There is an Android NDK (native development kit) for developing with C / C ++. Of course, if you have something useful, you also need to get used to Java. You also need to learn how to use external libraries. Next, there are all settings of [File]> [Settings]. Here, you can apply the “Darkula” theme to make your environment look a little white.

It all sounds like a headache, but Google has made great strides to make these processes as simple and easy as possible. A few years ago this tutorial would have been much confused even during the setup phase! The best strategy is to be stuck with a simple application project and to learn as much advanced functionality as you need. You can see that Android Studio is actually a very useful tool.

Learn How To Develop Your Own Android App

Android training in Chandigarh: This is the most detailed and comprehensive course covering all aspects of Android application development. With absolute beginners without knowledge of coding, veteran programmers can develop beautiful and functional Android apps on this course and quickly access the latest features of Android and Android Studio.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at

Up ↑

Create your website with
Get started
%d bloggers like this: