Android Studio Tutorial For Beginners (Getting Started) – 2020

A complete android studio tutorial for beginners, from installing Android Studio to coding and debugging your first Android app

After reading this blog, you will get more familiar with the Android Studio i.e. If you are starting Android Development, then this is the best android studio tutorial for beginners in 2020 that you should read before diving into the vast field of Android Development. the tool that is used for developing Android applications. It’s an easy android studio tutorial for beginners, from installing Android Studio to coding and debugging your first Android app.

So, in our case, if Android Development is our Locker then Android Studio should be our Key. In this blog, we will learn about Android Studio i.e. what is Android Studio, how to install Android Studio, some of the tips and tricks of Android Studio and many more interesting things that can be used to make Android applications faster than before. So, let’s get started.

What is Android Studio?

Android Studio was first announced at a Google I/O conference in 2013 and was released to the general public in 2014 after various beta versions. Prior to its release, Android development was handled predominantly through Eclipse IDE, which is a more generic Java IDE that also supports numerous other programming languages.

No doubt, you can write the same code by using any normal text editor but that will increase your workload. To write some code for your Android application, you need some kind of environment or code editor that will make your task easy. You can use that energy in developing some cool logic in your Android application. Android Studio is an Integrated Development Environment (IDE) for Android app development.

Android Studio provides a number of features, some of these are:

  1. 1. Instant RUN on your mobile device to check the working of the application.
  2. 2. Instant Run to push changes to your running app without building a new APK.
  3. 3.Extensive testing tools that can be used before you launch your application on Google Play.
  4. 4. Provides predefined models for use in our project.
  5. 5. It Also provides C++ and NDK support.
  6. 6. Built-in Google Cloud Platform support makes Google Cloud Messaging and Google App Engine simple to integrate.

How to Install Android Studio?

Google provides Windows, Mac OS X, and Linux systems with Android Studio. Android Studio can be downloaded from the Android Studio site, where you will also find typical SDKs with command-line software from Android Studio. Make sure that your platform meets the following requirements before installing Android Studio:

Windows requirements

  • Microsoft Windows 7/8/10 (32-bit or 64-bit).
  • 3 GB RAM minimum, 8 GB RAM recommended (plus 1 GB for the Android Emulator).
  • 2 GB of available disk space minimum, 4 GB recommended (500 MB for IDE plus 1.5 GB for Android SDK and emulator system image).
  • 1280 x 800 minimum screen resolution.

Mac OS requirements

  • Mac OS X 10.10 (Yosemite) or higher, up to 10.13 (High Sierra).
  • 3 GB RAM minimum, 8 GB RAM recommended (plus 1 GB for the Android Emulator).
  • 2 GB of available disk space minimum, 4 GB recommended (500 MB for IDE plus 1.5 GB for Android SDK and emulator system image).
  • 1280 x 800 minimum screen resolution.

Linux OS requirements

  • GNOME or KDE desktop. Tested on Ubuntu 14.04 LTS, Trusty Tahr (64-bit distribution capable of running 32-bit applications).
  • 64-bit distribution capable of running 32-bit applications.
  • GNU C Library (Glibc) 2.19 or later.
  • 3 GB RAM minimum, 8 GB RAM recommended (plus 1 GB for the Android Emulator).
  • 2 GB of available disk space minimum, 4 GB recommended (500 MB for IDE plus 1.5 GB for Android SDK and emulator system image).
  • 1280 x 800 minimum screen resolution.

Write your first application in Android Studio.

By design, Android Studio provides you with a range of templates you can use to build your very first Android Studio project.
Select Start a new Android Studio project to create a new project in Android Studio:

Start Android Studio

After that, choose from the number of predefined templates that you can use without coding for the same in your project. If you do not have the desired template then you can pick the template for Basic or Empty Operation.Android Studio Templates

Click on next after selecting the appropriate template, then enter the application name, application package name, save location, language, and minimum API level (this is the minimum API level supported by your app). Click Start after picking these.
Android Studio New Project

Congratulations, you’re ready for your first Android Studio project. Through attaching the device to USB, you can run your project on your computer and then run your Hello World application:) But get familiar with Android Studio before that. Once you build a project in Android Studio, the screen below will be opened:
Android Studio First Screen
We can divide the Android Studio screen into four parts to better understand:

  1. Menu Part: You’ll get different options here, such as creating a new project, launching a project, running your project on the desired computer, designing your project, and many other options.
  2. Coding area: This is the place where you can write code for your file.kt or.java or.xml. In different tabs, you can open a number of files at a time, but editing can be accomplished in just one at a given time.
  3. Project structure: This is the section from which you will be able to access all of your project files. The project layout in Android Studio has different views. You can use the views below:
  4. Current execution part: This part is the Android Studio’s most important part. Here you can see the method or operation actually being performed. If any in your Android code, you can detect the mistake. Here you’ll get all of your build outputs and activities, logcat tests, all of them, and you can also use your Android Studio terminal there.

Knowing the Designing part in an android studio tutorial for beginners.

By writing codes in your.xml file, you can build your Android application’s UI. In the res/layout directory, you can find your.xml. You will have two choices here to design the UI for your application, i.e. the Text or Design process.
You can write the XML code for your Android app in the text way, and you can see the preview on some mobile devices at the same time. Below is a preview of the language of the UI:
Design XML
Android Studio allows you to drag and drop different widgets and use them in your application. You will have a palette list and in your application you can use any of them. Here is the view of the Android studio’s design part:
Design Layouts

Start Your App

You can run the application in two ways in Android Studio, either by using your mobile device to run the program or by creating a virtual device called an emulator and running the software on it. The virtual computer will do the same as a regular device, but some RAM and storage will be needed.

Follow the following steps to run an app on your device:

  1. To connect your computer to your PC, use a USB cable.
  2. Then open your device’s Settings.
  3. Choose the device only on Android 8.0 or higher.
  4. Scroll down and pick the select About phone.
  5. Scroll down and tap Build number seven times.
  6.  To find User options near the bottom, go back to the previous page.
  7. Open Developer options, then scroll down to find USB debugging and enable it.
  8. After that, click Run to run your application in your Android Studio by selecting the device connected to it

Run Android Project

Follow the steps below to run your app on Emulator:

  1. Tap Run in Android Studio
  2. Tap Create New Virtual Machine in the Select Deployment Goal tab.
  3. Pick a phone computer from a list of phones in the Select Hardware tab and press Next.
  4. Select the version with the highest level of the API in the System Image screen and click Next.
  5. Leaving all the settings alone on the Android Virtual Device (AVD) screen and press Finish.
  6. Select the device you just built and press OK in the Deployment Goal dialog.

Keyboard Shortcuts (Extras) in android studio tutorial for beginners.

In Android Studio, you can use keyboard shortcuts to perform a number of operations more easily. Some of the shortcuts are:

  1.  Find: Ctrl + F in Windows/Linux and cmd + F in Mac
  2.  Replace: Ctrl + R in Windows/Linux and cmd + R in Mac
  3.  Find class: Ctrl + N in Windows/Linux and cmd + O in Mac
  4.  Find file: Ctrl + Shift+ N in Windows/Linux and cmd + Shift+ N in Mac
  5.  Zoom in/out: Ctrl + plus/minus (+/-) in Windows/Linux and cmd + plus/minus (+/-) in Mac
  6.  Fit to screen: Ctrl + 0 in Windows/Linux and cmd + 0 in Mac
  7.  Go to XML: Ctrl + B in Windows/Linux and cmd + B in Mac
  8.  Toggle device: D in Windows/Linux and D in Mac
  9.  Override methods: Ctrl + O in Windows/Linux and cmd + O in Mac
  10.  Implement methods: Ctrl + I in Windows/Linux and cmd + I in Mac
  11.  Generate code: Alt + Ins in Windows/Linux and cmd + N in Mac
  12.  Start new line: Shift + Enter in Windows/Linux and Shift + Enter in Mac
  13.  Debug: Shift + F9 in Windows/Linux and Ctrl + D in Mac
  14. Copy: F5 in Windows/Linux and F5 in Mac
  15. Commit project in VCS: Ctrl + K, in Windows/Linux and cmd + K in Mac

Few tricks and tips in android studio tutorial for beginners.

There are some tips and tricks to use with Android Studio to master the creation of Android. These are the following tips and tricks:

  • Setting the theme
  • Changing color of Logcat
  • Fast Searching
  • Split Screen
  • Distraction-free mode
  • Code completion
  • Multi cursor feature and many more

Conclusion

We looked at Android Studio’s view in this blog and also learned some of the shortcut keys that can be used in Android Studio. Now, we’ve seen some of Android Studio’s tips and tricks. Hope you enjoyed the blog.
Keep Learning :), also look at Top 10 Android Libraries

Team Brunchiz!

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

1 thought on “Android Studio Tutorial For Beginners (Getting Started) – 2020”

  1. Why don’t you just prove yourself first in the way to have students?
    at least people know how good you are as an instructor.
    don’t be afraid too much of losing your knowledge by giving some free good samples of Android projects codes.

    I had been learning to some guys like you and got nothing special from them so I choose to figure it out myself from many sources in the internet.

    I don’t mind spending more money for it as long as i got a proof how good a person i’m going to learn with

    Reply

Leave a Comment