What is Android Studio

Android Studio powered by the IntelliJ platform is an integrated development environment (IDE) and is officially recognized for developing androidapplications. Its foundation lies on JetBrains' IntelliJ IDEA and is specialized for the development of android applications.

It is currently available to install on Windows, Linux, and macOSoperating systems. The Eclipse Android Development Tools which was earlier considered as key IDE for native Android application development was substituted by Android Studio.

On May 16, 2013, Android Studio IDE was disclose the Google Input/Output conference. In May 2013, it was previewed for early access in version 0.1 and then launched in beta testing starting from version 0.8 in June 2014.In December 2014, the first stable build was released starting from version 1.0.

Kotlin substituted Java as Google's preferred programming language for Android app development on May 7, 2019. But currently, Java is still supported by Android Studio, as is C++ (for native coding).

Features:

  • Anadjustable Gradle-based build system
  • It provides acombined environment in which you can develop for all Android devices such as phones, watches, tablets, etc.
  • Able to push changes to your running app without building or creating a new APK
  • Provides code templates and Git integration to help you import sample code and build common app features
  • A high-speed and fully featured emulator
  • It provides lint tools for determining performance, version compatibility, and other issues
  • Vast testing tools and frameworks for your app testing purposes
  • Integration with Google Cloud Platform (GCP), making it easy to deploy Google App Engine and Google Messaging services
  • Provides C++ and NDK support
  • Provides Visual layout editor
  • Plug-in architecture used to extend Android Studio with plugins

Creating a new Android Project:

We can create a new Android project by following these steps:

What is Android Studio?

Android Studio welcome screen

  • If you have an existing project opened, select File -> New -> New Project option and follow the remaining steps.
  • Then the Select a Project Template window appears and in this select Empty Activity and click on the Next button.
What is Android Studio?

Select a Project Template Window

  • Now in the Configure your project window, you need to complete the following steps:
    • Enter your project name as per your requirement in the Name text field.
    • Enter "com.example.projectname" in the Package name text field. (In the latest versions of Android studio, it auto generates the package name)
    • If you may want to store the project in a different location, change its Save location as per your need.
    • Select either Kotlin or Java programming language from the Language drop-down menu.
    • Select the minimal version of Android that your app will support in the Minimum SDK drop-down menu.
    • If the app will need legacy library support, mark the Use legacy android.support libraries checkbox.
    • Leave the other options unchanged.
What is Android Studio?

Configure your Project Window

  • Click on the Finish button.

It may require some seconds to set up your project to bring up the Android Studio main window.

Android Studio might take a moment to review and download the most important files such as gradle files and several dependencies.

What is Android Studio?

Android Studio Main Window

Initially, check that the project window is open (choose [View] > [Tool Window] > [Project]) and make sure the Android view is selected in the drop-down list at the top of the window.

You can see the structure of the project and the following files:

  1. app > java > com.example.projectname>MainActivity: By default, it's the entry point for your app. When you build and run your application on an emulator or your device, the system will create an instance of this Activity and will load its respective layout.
  2. app > res > layout > activity_main.xml: This XML file defines the design for the activity's user interface (UI) which shows how it will be displayed on a user’s screen. By default, it contains a TextView with the text "Hello, World!"
  3. app > manifests > AndroidManifest.xml:The manifest file describes the basic characteristics of the app and the required permissions such as Location or Internet access permissions and defines each component.
  4. Gradle Scripts:In this there are 2 build.gradle files:
    1. Project level, "Project: My First App," and
    2. App module level, "Module: app."

Each module of the android project has its own build.gradle file. We can use each module's build.gradle file to control how the Gradle plugin builds your app.


Related Topics

Button Widget in Android Tutorial

Explanation: Button is a widget under Buttons section which is used to execute specific code. Example: XML file: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">     <Button         android:id="@+id/button"         android:layout_width="wrap_content"    ...

1 minute read.

Android Styles and Themes

Android styles allow you to design the appearance (for example, colors, size, and fonts) of Android UI components from XML resource files. With this method, you only need to set...

5 minutes read.

Android Tutorial

This Android tutorial will provide you with all the concepts that will be beneficial for both beginners and advanced-level students or candidates. You can learn this tutorial to begin your...

6 minutes read.

Android GridView

Theview group that displays items in a two-dimensional scrolling grid is called GridView. The data isadded into this grid layout from anArray List or database. The adapter class isutilized to...

4 minutes read.

How to show image on an android application

ImageView Widget in Android What you should already KNOW? You should be familiar with: 1) Creating, building, and running apps in Android Studio 2) Basics of android widgets   Explanation: Image View widget is used...

2 minutes read.

Top 7 Android App Development Books

Do you want to create Android apps but don't know where to start? One should first be familiar with the basics of Android before we discuss these books. With the...

5 minutes read.

Difference between android developer and web

From a small business to a big firm, every organization in the world of technology requires a digital market presence and only mobile applications and websites/web applications provide for digital...

4 minutes read.

Android EditText

In Android, EditText is a UI widget utilized to allow the user to input or change the text. While using the EditTextwidget in your Android application, you need to use...

4 minutes read.

Android Studio Resources

To build an outstanding Android application there are many items that you need to use. Aside from the coding of your application, you need to handle various resources such as...

5 minutes read.

How to insert the mobile number on an android application using EditText

Number Insertion in android application: Sometimes while dealing with numbers, we don't want to insert any string inside an number so, we premiliary define an EditText so we externally specify...

2 minutes read.

Dashboard UI Design in Android

One of the essential components that draw the user’s attentions into the application's operation is the dashboard design. It offers details on the application's general functionality in one location. Imagine...

11 minutes read.

How to Update Gradle in Android Studio?

The Android Gradle plugin adds a number of features that are unique to develop Android apps to the Gradle build system, which is the foundation of the Android Studio development...

2 minutes read.

How to insert an email in android application in android version 8

Email Address Insertion It is used to insert email adrress from the user in the android application.The only point of difference between an EditText and an Emailtext is that EmailText consisits...

1 minute read.

Android ScrollView

A ScrollView is a view group that is used to create vertically scrollable views in an android application. Only a single direct child can be contained by ScrollView. For placing...

5 minutes read.

Android Broadcast Receivers

Android applications can send or receive broadcast messages from the Android operating system and other Androidapplications, like the publish-subscribe design pattern. When an event of interest happens,these broadcasts are sent. For...

4 minutes read.

Event Handling in Android

Events are a convenient way to gather data about user interactions with interactive elements of your application. Like a button click or a screen touch. A queue of events on...

3 minutes read.

Content Providers of Android with Example

An essential part of Android that performs the function of a relational database by storing application data is called a content provider. The function of the content provider in the...

13 minutes read.

Android Time picker example

How to pick Time from the user in android? Write an android example to pick Time from the user and display the date to the user. Android provides controls for the user...

3 minutes read.

Android Navigation Drawer

A sliding menu used to show important links in the Android Application is called Navigation Drawer. The navigation drawermakes it easier to navigate between the fragments. It is not displayed...

5 minutes read.

Android Studio's Layout Editor

The Layout Editor allows you to efficiently create layouts by dragging UI elements from the Palette into the visual design editor instead of manually creating the layout XML file by...

8 minutes read.