Introduction To Android Studio And IntelliJ IDEA

Introduction:

Today I am starting to make a series of articles on Android application development, so first of all, so we are clear, let's cover some basics: the history of Android Studio and basic structure of Android Studio.

What is IntelliJ IDEA?

  • A leading Java development environment.
  • Published by JetBrains.
  • Available for Windows, Mac OS X, and Linux.

IntelliJ IDEA Editions

  • Community Edition
  • Basic Java Development tools
  • Completely free
  • Ultimate Edition
  • Add database, UML, web, and enterprise development

Android Studio

  • Announced at Google I/O in May 2013.
  • Version 1.0 was released in December 2014.
  • Available free.

Eclipse Android Developers Tool

  • Eclipse ADT is no longer under development.
  • Google removed links to download ADT bundle in December 2014.
  • Android Developers should now be using android studio.

Especially For Beginners

  • When you install android studio after completion on android studio you are facing some errors then simple you uninstall the studio and reinstall it.it is only the wastage of time nothing else.
  • So if we install with open eye and follow the overall steps it is too beneficial for us and then make a standard.
  • First you install JRE and JDK which is mandatory for android studio JDK and JRE.
  • Move to the SDK manager and download standalone version of SDK and install it Android SDK.
  • You can install the Android by clicking the link and download the latest version.
  • Android Studio for Windows

Step 1:

In first step we check whether JRE and JDK is present in our computer or not so we move to open command prompt and type some commands to check. We follow the three commands to check that Java components are installed in computer or not. In my computer I already have JDK or JRE but I can’t see the environments variables.

cmd

Step 2:

After installation move to the Control Panel and in search bar, search the environments variables then click on edit dialog which appears.

system

Step 3:

Now if you don’t find the JAVA_HOME directory then click on a new button and make the directory and set the name JAVA_HOME and give the JDK path and then press OK button. After doing this go to the command prompt and give the command and you see that now it gives an actual path.

edit
cmd

Now install the Android studio and hopefully the installation has completed. Now we move to some common discussion about Android studio structure and pattern. Now open Android studio and make a new project, if you aren'y familiar with how to create the new project follow this article.

Structure Of Android Studio

studio

Package Name Is Unique? What does it mean?

  • Is Facebook package name Facebook?
  • The Answer is no, the package name is katana.
  • So you should give a unique name.

    play store

What is APK?

  • APK is similar to EXE file.
  • APK is a setup file for android operating system.
  • EXE is a setup file for windows operating system.
  • Maximum size of APK is 50MB.

MainActivity.Java?

  • All the java methods and definitions are implemented here.
  • AndroidManifest.Java?
  • This is the type of file which is similar to app.config in C# application.
  • All the configurations are available here.
  • All the permissions are here.

App/Build.gradle?

  • All the third party components are listed here.
  • All the dependencies are declared here.
Read more articles on Android:

Up Next
    Ebook Download
    View all
    Learn
    View all