Once you have successfully installed Java SDK, then here is a quick guide on creating a new app project in Android Studio v 2.3.2.

Step 1: Configuring Application Basic


Open Android Studio
Close the Tip of the day box
Select File > New Project
A new window will appear titled as "Configure Your New Project". Add the below values in the box.

Application name: My Application
Company Domain: If you have a domain, type that there or just type- 

com.mycompany.androidsample

You do not have to change anything else.

Select Next

Step 2: Configuring Form Factors

A new window will appear titled as "Target Android Devices". Here you need to select the form factors your app will run on different platforms that requires separate SDKs. 

Tick mark the Phone and Tablet and select API 9: Android 2.3 [Gingerbread]. This will guarantee that your application will run in 100% Android Devices. If you take higher APIs, the target devices will come down and your application will have limited users. 

You do not have to change anything else unless your app is intended to wearable devices, Google TV and Android Auto.

Select Next


Step 3: Creating an Activity to Mobile


Now you may get a window with SDK path like C:/Users/Admin/AppData/Local/Android/Sdk and codes in the below box.


Preparing "Install Solver for ConstraintLayout 1.0.2 (revision: 1)".
Downloading https://dl.google.com/android/repository/com.android.support.constraint-constraint-layout-solver-1.0.2.zip
"Install Solver for ConstraintLayout 1.0.2 (revision: 1)" ready.
Finishing "Install Solver for ConstraintLayout 1.0.2 (revision: 1)"
Installing Solver for ConstraintLayout 1.0.2 in C:\Users\Admin\AppData\Local\Android\Sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.2
"Install Solver for ConstraintLayout 1.0.2 (revision: 1)" complete.
"Install Solver for ConstraintLayout 1.0.2 (revision: 1)" finished.
Preparing "Install ConstraintLayout for Android 1.0.2 (revision: 1)".
Downloading https://dl.google.com/android/repository/com.android.support.constraint-constraint-layout-1.0.2.zip
"Install ConstraintLayout for Android 1.0.2 (revision: 1)" ready.
Finishing "Install ConstraintLayout for Android 1.0.2 (revision: 1)"
Installing ConstraintLayout for Android 1.0.2 in C:\Users\Admin\AppData\Local\Android\Sdk\extras\m2repository\com\android\support\constraint\constraint-layout\1.0.2
"Install ConstraintLayout for Android 1.0.2 (revision: 1)" complete.
"Install ConstraintLayout for Android 1.0.2 (revision: 1)" finished.
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-24\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\build-tools\25.0.2\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\docs\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\emulator\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\extras\android\m2repository\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\extras\google\m2repository\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\extras\m2repository\com\android\support\constraint\constraint-layout-solver\1.0.2\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\extras\m2repository\com\android\support\constraint\constraint-layout\1.0.2\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\patcher\v4\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\platform-tools\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\platforms\android-25\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\sources\android-25\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\system-images\android-25\google_apis\x86\package.xml
Parsing C:\Users\Admin\AppData\Local\Android\Sdk\tools\package.xml

Select Next.

A new window will appear titled as "Add an activity to Mobile". You can see 12 activities listed in the window. You can select "Empty Activity" for example.

Select Next.

Step 3: Customise the Activity

A new window will appear titled as "Create a new empty activity". Tickmark the Generate Layout file and Backwards Compatibility.  Add the below values in the box.

Activity name: MainActivity
Laout name: activity_main

Select Finish

You have successfully created a New App Project in Android Studio v 2.3.2.


1 Minute Video Tutorial


Now you can try out and edit XML Command panel for coding of Android App.



| Comments || >