Working with Android Studio
In this tutorial, we will learn how to build a basic android application using Android Studio, which will also include some Android Studio basics and android app development basics.
Steps to follow for developing your first android app:
Create android development environment
1. Download JDK (Java Development Kit 7) required for Android Studio
(Search out for valid link if not working)
2. Download &install (require as development IDE ) latest and upgraded Android Studio
(Web page gets changed often search out if not working)
Before follow step three first install and open Android Studio, Android SDK (Software development Kit) could be download and install using SDK Manager. Click File >> Settings then under Appearance & Behavior select Android SDK under System Settings node.
7. Click next, and click finish. You may also change default but not require.
8. Now, we have done with our all basic default file for android application development project.
9. If you follow step two then go to File -> Project Structure -> SDK Location. Also, add JDK path if not already added
We are ready with our first Android Application which simply show Hello World on screen. Now, to run this application we need an Android device or alternately an emulator which runs on our computer. Open AVD manager from icon or Tools > Android > AVD Manager
We will study little about file already available in our Android Application, I include this information from official site of Android app Developer
Layout file added as a layout of MainActivity’ during project creating, has TextView with ‘Hello World’ text. Android Studio provides both UI and XML view of layouts.
This is simple JAVA class which extends Activity class. It is added by default as launcher Activity when you are creating your project. If you run project this Activity will be called first.
Some basic attributes like a version of the application, permission required and application’s component are defined.
The configuration file for Gradle Build Tool. You application build dependencies are defined here with some setting like compiledSdkVersion, applicationId,minSdkVersion ,targetSdkVersion etc.
Drawable object’s directory available for different densities like drawable-hdpi
Contain user interface layout for your application.
app>build>generated>source>r>debug>com>mobilesiri>helloworld>R.java. Don’t touch this file. This is a compiler-generated file which contains reference for all projects resource mapped to a HEX Code. Like
public static final int activity_main=0x7f040019;