Category Archives: Android Studio

Create/Start New Project In Android Studio

Objective:

The main objective of this tutorial is how to create a new project in Android Studio. And this tutorial is for those who are new to Android Studio.

To create a new project perform the following steps:

Step 1: Start and configure the project:

Firstly, open the Android Studio. You will see “Welcome to Android Studio” on your computer screen. After that you click on “Start a new Android Studio project”.

ff

If you do have a project opened, click File > New > New Project.

aa

After that you will see “Create Android Project” on your computer screen. Here enter the “Application name” , the “Company Domain” ( Company domain is used to uniquely identify the App. So two App with same Application name will have different company domain. e.g. I used here “sanikamal.ruatech.com”)and the project location in the text box and then Click Next button. If you want to use C++ and/or Kotlin code in your project, check the corresponding checkboxes to set up your project accordingly. You can always add C++ code and add Kotlin code later.

ffg

Step 2: Select form factors and API level:

After that you will see “Target Android Devices” on your computer screen and select the form factors your app will be run on. Select “Phone and Tablet” field and enter the “Minimum SDK” in the text box and then Click Next button. When you select Minimum SDK, Android studio will give you some active android devices percentage that will support your android application. Otherwise, you can also click on “Help me choose” button for more information about android platform versions.

ggg

Step 3: Add an activity:

This screen suggests you “Add an Activity to Mobile” first. If you don’t want to add any activity at starting, you can select Add no activity option. We selected Empty Activity.

If you have selected Phone and Tablet in option in the last screen then it will display the only phone related suggestions.

For example, select Google Maps Activity for google map project, Login Activity for User Login project etc.

bbbbb

Step 4: Configure your activity:

Here, you can customize your selected activity. You can change your Activity name from here. Enter the “Activity Name” in the text box and enter the “Layout Name” in the text box and then Click Finish button.

Activity Name Name of JAVA file for programming

Layout Name Name of XML file for designing UI

swsw

Android Studio now sets up your project and opens the IDE.

fgggjh

I hope you find this blog post very helpful while creating Android Project in Android Studio. Let me know in a comment if you have any questions regarding Android Studio. I will reply you ASAP.

 

Android Studio Tutorial For Beginners

android-studio-logo-840x359.pngAndroid Studio Introduction

Android Studio is the official IDE (integrated development environment) for developing Android Apps by Google. It is purpose built for Android to accelerate your development and help you build the highest-quality apps for every Android device. It is based on  JetBrains’ IntelliJ IDEA software and has lots of amazing features which helps developer in creating Android App.

Android Studio is available for free download on Windows, Mac OS X and Linux.

Prerequisites For Learning Android Studio:

There are two prerequisites for learning Android Studio tips:

System Requirements:

First your system OS must be either Windows, Max OS X or Linux with below requirement:

Windows

  • Microsoft® Windows® 7/8/10 (32- or 64-bit)
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
  • 2 GB of available disk space minimum,
    4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

Mac

  • Mac® OS X® 10.10 (Yosemite) or higher, up to 10.13 (macOS High Sierra)
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
  • 2 GB of available disk space minimum,
    4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

Linux

  • GNOME or KDE desktopTested on Ubuntu® 14.04 LTS, Trusty Tahr (64-bit distribution capable of running 32-bit applications)
  • 64-bit distribution capable of running 32-bit applications
  • GNU C Library (glibc) 2.19 or later
  • 3 GB RAM minimum, 8 GB RAM recommended; plus 1 GB for the Android Emulator
  • 2 GB of available disk space minimum,
    4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution

 

 

Android Studio:

The second thing you need is to download Android Studio on your system and install it. It is available for free download on Windows, Mac OS X and Linux OS.


Eclipse Vs Android Studio

Android App Development is mostly done in two IDE i.e. Eclipse and Android Studio. Earlier Eclipse was the popular IDE but now Android Studio has taken over it. This is because Google has ended the support for Eclipse and now only focused on Android Studio. Google also recommended developer to import their Android projects into Android studio and use Android Studio.

Android Studio Tutorials For Beginners:

Below are the tutorials links on Android Studio:

  • Create New Project – Learn how to start/create a new project in Android Studio
  • Open Project – Learn how to open projects in Android Studio.
  • Close, Save and Open Recent Project – Learn more about how to open saved projects and close current project in Android Studio.
  • Create New Activity – Learn to create New Activity in Android Studio .
  • Create New Java Class -Learn how to create New Java Class in Android Studio.
  • Create Virtual Device – Learn how to create a new AVD  in Emulator.
  • Run App in Emulator – Learn how to run and test Android App in Emulator.
  • Run/Test App in Real Device – Learn how to run app in real device.
  • Create Drawable Resource XML File – Learn how to create drawable resource XML file in Android Studio.
  • Add/Create Landscape Layout – Learn to design app in Landscape orientation in Android Studio.
  • Create Local HTML File – Learn how to create local HTML file in Android Studio.
  • Create Raw Folder – Learn how to create Raw Folder in Android Studio.
  • Add/Create Assets Folder – Learn how to create Assets folder in Android Studio.
  • Install Genymotion Emulator – Howt to install Genymotion Emulator in Android Studio.
  • Import/Add External JAR File – Learn how to import an External JAR file to Android Studio.
  • Change API SDK Level – Learn how to change the SDK level of API in Android Studio.
  • Create/Add New Package Inside Src Folder – Learn how creating new package inside Src Folder in Android Studio.
  • Creating Folders for Adding Different Resolution Images – Learn how add folder for adding images with different resolution in Android Studio.
  • Create An Interface – Learn how to create Interface in Android Studio.
  • Add Image to Drawable Folder in Android Studio – Learn Steps to add image to Drawable Folder in Android Studio.
  • Change Icon Of Your Android App – Learn how to change the android app icon in Android Studio.
  • Add Audio To Android App – How to  add audio to your Android application.
  • Application Launcher Icon Size – Learn about different application launcher icon sizes in android studio.
  • Basic Activity In Android Studio –Learn about how to create a basic activity in android studio.
  • Implement Abstract Method – Learn about how to implement abstract methods on clicks or using shortcuts in android studio.
  • Change Package Name In Android Studio – How to rename/change package name in Android Studio
  • Generate Signed Apk In Android Studio For Publishing & Updating Application.
  • How To Publish Android App On PlayStore – Learn how to publish your first Android App on Play store.
  • How To Create Anim Folder & Animation File In Android Studio –Steps to create an anim folder in Android Studio to store animation file under the resource folder of our application.