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

Jetpack Architecture Components in Android

A collection of software elements, libraries, tools, and instructions is called Android Jetpack. It is available to assist in creating reliable Android applications. Jetpack, which was introduced by Google in...

8 minutes read.

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...

3 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.

AdapterViewFlipper in Android with Example

The AdapterViewFlipper class, a subclass of the ViewAnimator class, is what we use to switch from two or multiple views when only one is present at a time. The AdapterViewFlipper...

10 minutes read.

Android TextView

Widgets are user interface (UI) elements that help users to interact with Android applications. It is one of many equipments that can be used to improvise the user interface of...

4 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.

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.

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.

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.

Creating a Calendar View App in Android

This article demonstrates how to make an Android application that uses CalendarView to display the Calendar. It also provides the option to pick the current date and view the date....

3 minutes read.

Android RecyclerView

RecyclerView is a ViewGroup brought to AndroidStudio as successor to ListView and GridView. These are all improvements and are included in the latest v7 support package. It was written to...

8 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.

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.

Broadcast Receiver in Android with Example

When a device wakes up, receives a message, receives an incoming call, switches to aeroplane mode, or initiates any other system-wide action, it is said to have been broadcast in...

5 minutes read.

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 to insert the image...

2 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.

Android Activity

What is an Activity? Android Activity is a screen in the user interface of an Android application. In this way, Android activity is very similar to the desktop application window. An...

4 minutes read.

Android Date picker example

How to pick date from the user in Android? Write an android example to pick date from the user and display it. Android provides control for the user to pick a date...

3 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.

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.