This article will teach you How to Learn Android for Beginners. As many of you are familiar with the fact that Android is very popular nowadays. Most of the application and even the smartphones are based on Android.

This quick guide article will help you to start Learning Android from the basics. You don’t need to know any kind of advanced programming to start from the basics.

Google also provides the beginners Build Your First App course to help you start from the basics.

But, in this quick guide, I will teach you the best and smartest ways to start a career in Android App Development. I will teach you all the basics in upcoming steps.

1. You Must Know Basics of Java

For starting Android Development, Java is the fundamental and foremost step to begin. You must be familiar with Java Programming Language.

Don’t panic, if you don’t know java. You should know the basics of Object Oriented Programming (OOPS). Like C++ is an OOPS based programming language where everything runs around the Class.

Java Language

If you don’t know the OOPS, then you can start learning these concepts from various platforms like GeekforGeeks, HackerEarth, etc.

2. Download & Install Android Studio

Android applications are built on a platform called Android Studio. Android Studio is a product by Google which allows us to build and run apps on it.

You can download the Android Studio setup from the link given below.

Download Android Studio

Android Studio is around 1-1.5 GB in size including SDK.

Android Studio Techiliar

3. Software Development Kit (SDK)

SDK is the kit  on which the android applications are built. It is a piece of code or, we can say it is an OS in itself which includes the Android Debug Bridge, Virtual Device Manager. SDK is the soul of the Android Studio because the software is nothing without it.

It is typically a set of software development tools that allows the creation of applications for a certain software package, software framework, hardware platform, computer system, video game console, operating system, or similar development platform.

4. Install Java Development Kit (JDK)

Java Development Kit (JDK) is kit or, we can say that it is Compiler for the Java Language on which the Java code is compiled and run to produce the desired output or result. JDK must be installed into the system with SDK to work functionally.

SDK and JDK work in parallel to each other, they both plays equivalent roles in Android App Development. JDK was released by the Oracle Corporation. As we know that Java is a object- oriented, platform independent language, the code can be run on multiple platform without any problem.

5. Starting with Android Studio

This step shows you how to create a new Android project with Android Studio 3.0.

First, be sure you have installed the latest version of Android Studio. Download Android Studio here.

  1. In the Welcome to Android Studio window, click Start a new Android Studio project. Or if you have a project opened, select File > New Project.
  2. In the Create New Project window, enter the following values:
    • Application Name: “My First App”
    • Company Domain: “example.com”

    You might want to change the project location.

  3. Click Next.
  4. In the Target Android Devices screen, keep the default values as before and click Next.
  5. In the Add an Activity to Mobile screen, right click project, then click New-> Activity, select Empty Activity and click Next.
  6. In the Configure Activity screen, keep the default values as before and click on Finish.

After some processing based on your system processor (faster in i5 or i7 processor compare to i3 or dual core systems, you need at-least 8GB of RAM for the smooth working of Android Studio), then Android Studio opens the IDE.

Now take a moment to review the most important files.

First, be sure the Project window is open, then (select View > Tool Windows > Project) and the Android view is clicked from the drop-down list at the top section of that window. You can then see the following files below:

app > java > com.example.myfirstapp > MainActivity
This is the main activity (the entry point for your app). When you build and run the app, the system launches this Activity and loads its layout.
app > res > layout > activity_main.xml
This XML file defines the layout for the activity’s UI (User Inteface). It contains a TextView element with the text “Hello world!”.
app > manifests > AndroidManifest.xml
The manifest file describes the fundamental characteristics of the app and defines each of its components.
The manifest file include all the permission asked by the app when you install it, the app name, app logo and many more things.
Gradle Scripts > build.gradle
You’ll see two files with this name: one for the project and one for the “app” module. Each module has its own build.gradle file, but this project currently has just one module. You’ll mostly work with the module’s build.gradle file to configure how the Gradle tools compile and build your app.

6. Run your App

You can run and Android Project app in 2 ways:

  • You can select and start a new Android Virtual Device and run the app on it. AVD is situated on the top-menu bar where you can choose your desired Android Version (you must have the file downloaded in Android Studio) and can choose the desired model with desired screen size to run the app.
  • AVD uses the system resources to run and it will cause a heavy load on your system if the requirements are low and your system can hang while working.
  • The other way, is to run the app in your Android smartphone. To do this, go the Settings->then, open Developer Options (if not shown, then go to About Phone-> tap 3 times on Build Number, you’ll become a developer message will be shown), now turn on Developer Options, go to USB Debugging-> turn it on.
  • Now, connect your smartphone to the system via USB cable and select your smartphone from the list of AVD and run your app.

 

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here