Installation & Explaining the Environment of Android Studio
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:
<!– Base application theme. –>
<style name=”AppTheme” parent=”Base.Theme.AppCompat.Light.DarkActionBar”>
<!– Customize your theme here. –>
Important Things to Know about Android:
- Anatomy of Android Application:
- 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.
- res/drawable-hdpi: This is a directory for drawable objects that are designed for high-density screens.
- res/layout: This is a directory for files that define your app’s user interface.
- res/values: This is a directory for other various XML files that contain a collection of resources, such as strings and colors definitions.
- xml: This is the manifest file which describes the fundamental characteristics of the app and defines each of its components.
- gradle: This is an auto generated file which contains compileSdkVersion, buildToolsVersion, applicationId, minSdkVersion, targetSdkVersion, versionCode and versionName.