Installation & Explaining the Environment of Android Studio

Installation & Explaining the Environment of Android Studio

Installation & Explaining the Environment of Android Studio

A. Installation:

Step#1: Downloading Android Studio:

Step#2: Welcome Screen:

  • To install Java JDK,take a references of Android environment setup

Step#3: Press Next:

  • After that press next and download all its asking for.
  • Note:- you need internet connection while doing installation.

B. How to Begin:

  • Create Android Project:

  • Finally, after done all steps perfectly, you must get finish button and it gonna be open android studio project with Welcome to android studio message as shown below:

  • At this time leave application name by default, one can change it according their need.
  • Then Press NEXT and select the form and minimum SDK.

  • Select empty activity at this time:

  • Configure activity: Leave activity Name by Default and then press Next and Then Finish.

  • After starting it will ask for download, do that to start:

  • First things to do (Optional):
    • Go to app on left side
    • Expand res
    • Expand values
    • Expand styles.xml, open it and then write Base. As shown in program.

  • Add this Base. To styles.xml in res:

<resources>

<!– Base application theme. –>

<style name=”AppTheme”      parent=”Base.Theme.AppCompat.Light.DarkActionBar”>

<!– Customize your theme here. –>

<item name=”colorPrimary”>@color/colorPrimary</item>

<item name=”colorPrimaryDark”>@color/colorPrimaryDark</item>

<item name=”colorAccent”>@color/colorAccent</item>

</style>

</resources>

  • Important Things to Know about Android:

    • Anatomy of Android Application:

  1. Java:This contains the .java source files for your project. By default, it includes an MainActivity.java source file having an activity class that runs when your app is launched using the app icon.
  2. res/drawable-hdpi: This is a directory for drawable objects that are designed for high-density screens.
  3. res/layout: This is a directory for files that define your app’s user interface.
  4. res/values: This is a directory for other various XML files that contain a collection of resources, such as strings and colors definitions.
  5. xml: This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.
  6. gradle: This is an auto generated file which contains compileSdkVersion, buildToolsVersion, applicationId, minSdkVersion, targetSdkVersion, versionCode and versionName.
Please follow and like us:

Author: Obaid Rasheed

Leave a Reply

Your email address will not be published. Required fields are marked *