Android Studio Tutorial

Android Studio offers a seamless environment where Android phones, tablets, Android Wear, Android TV and Android Auto apps can be created. Structured code modules allow you to separate the project into functionality units that you can create, evaluate, and debug separately.

Step 1 : Specifications for the Framework

I will tell to you friends that you can start your own Android application but this is only working in following system :

  • Microsoft® Windows® 10/8/7/Vista/2003 (32 or 64-bit)
  • Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
  • KDE desktop

The second argument is that all the requisite resources are open source and can be downloaded from the Web to create Android apps.

The following is the list of applications you’ll need before you start programming your Android application.

  • Java JDK5 or later version
  • Java Runtime Environment (JRE) 6
  • Android Studio

Step 2 : Setup Android Studio

Overview

Android Studio is the official mobile creation IDE for Android. You can easily download Latest Version of Android studio from Android Studio 2.2 Download. If you are new to download Android Studio then you will find a one file named android-studio-bundle-143.3101438-windows.exe So just download and run this file.

This guide will take into account that you will be setting up your environment on a Windows computer running Windows 8.1 or Windows 10.

Installation

Let’s launch Android Studio.exe, so make sure our computer wants Java JDK installed before launching Android Studio.

When you have launched Android Studio, it’s time to mention the road to JDK7 or later in the Android Studio installer. So you just below the image initiating JDK to android SDK.

You need to verify the components which you have needed to build your own applications like Android Studio, Android SDK, Android Virtual Machine.

You just need to determine the specific location of Machine path for Android Studio and Android SDK. And the images has taken default location of your operating system architecture.

As well as you need to also specify the RAM space for Android Emulator by default it. Minimum recommended RAM is 512 MB.

At the Final and last step , It would extract SDK packages onto our local computer. Some couple of minitues is taken it so stay tuned. It would take 2626 MB of hard disk space.

After completing all the above steps perfectly, you need to get the finish button and Welcome to the android studio message as shown below will launch the android studio project.

You will see this type of box means you have perfectly completed all steps. So now you can start your application development or calling that start a new android studio project.

When you start your project one installation frame will open . At that time you should ask the Application name which you will going to create as well as package information and location of the project also asked. So you just fill that all above information.

Configure your new project

After entering the name of the programme, selecting the type factors on which the application runs will be named, here you need to define Minimum SDK, I declared API23: Android 6.0(Mashmallow) in our tutorial.

Target Android Devices

The next installation step should include mobile activity range, which determines the default interface for Applications.

It will be an open programming platform to write the application code at the last point.

Step 3 – Create Android Virtual Device

You will require a computer Android system to test your Android applications.

So let us build an Android virtual computer before we start writing our code. Launch Android AVD Manager As seen below, click on the AVD Manager icon.

After you press the virtual device icon, the default virtual devices that are present on your SDK will be shown, or you will need to create a virtual device by pressing the Create New Virtual Device button.

If your AVD is successfully developed, it means that your environment is ready for the creation of Android apps. You can close this window by using the top-right cross button, if you prefer. Once you’re finished with this last phase, you’re ready to continue with your first example of Android, but before that, we’ll see a few more important Android Device Creation principles.

Example : ” Hello World “

Before the writing the Hello World code you must know about XML tags.

Now , you should redirect the Activity_main.xml and we need to call text view with layout to display hello word.

CODE :

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
   android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
   android:paddingRight="@dimen/activity_horizontal_margin"
   android:paddingTop="@dimen/activity_vertical_margin"
   android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
   
   <TextView android:text="@string/hello_world"
      android:layout_width="550dp"
      android:layout_height="wrap_content" />
</RelativeLayout>

Now , you click RUN or press shift+f10 key . Finally you can see your result in Virtual devices as shown below.

Finally you can see your Output means Result . I hope you may understood all things.

Follow Technewstp for the latest tech news , Tips and tricks also keep up with us on Twitter, Facebook, and Instagram.

Similar Articles

Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Advertisment

Most Popular