ANDROID APPLICATION DEVELOPMENT FOR BEGINNERS
1) INSTALLING ANDROID SDK
You will need the text editor for designing your android application. ECLIPSE IDE is recommended as I am working with it. Trust me guys, it’s very easy to use the eclipse in order to design your android apps.
You can download the eclipse IDE from the below link
https://dl.google.com/android/adt/adt-bundle-windows-x86-20131030.zip
It is totally safe to download the bundle from the above link, don’t use any other link, it might be malicious.
2) INSTALLING ADT PLUGIN for Eclipse
This plugin is required to integrate your eclipse IDE with the android SDK. With the help of this plugin, you can make your eclipse to design apps for android platform.
This ADT Plugin is installed into the eclipse IDE.
This should be done once you extract the above ADT bundle and start the eclipse from the same.
This plugin can be installed in simple steps as follows.
1) Start eclipse
2) Go to help in toolbar
3) Click on install new software
4) Click on add on top right corner
5) A new screen will appear, put ADT Plugin as the Name and the Location should be
http://dl-ssl.google.com/android/eclipse/
The process of installing the ADT Plugin will start; wait till this process gets over. At the end you will have to restart the eclipse.
3) ADD ANDROID VIRTUAL DEVICE
This can be done in the following way
1) Open eclipse IDE
2) Go to Windows in Eclipse Toolbar and click on Android Virtual Device Manager
3) New window will pop up.
4) Click on new
5) Enter the name of the Virtual Device in AVD Name, select the proper device which you want to create virtually
4) CREATE ANDROID PROJECT
Now it is the time to create your first android app. To do so, you need to create the project in eclipse.
Follow the simple steps to do this
1. Click on File in Eclipse Toolbar and select Android Application Project
2. Enter the name of the project in proper manner as shown below
3. The newly created android project will be shown in the left pane.
One thing to note over here is that plenty of repository folders and contents get created automatically. These all are created in order to enable you to create android apps in smooth manner and every repository folder is related to each other, so DON’T EVER DELETE ANY ONE OF THE REPOSITORY FOLDERS.
5) PROGRAMMING
package com.example.second;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView textView = new TextView(this);
textView.setText(“Hello World This is my first android app”);
setContentView(textView);
}
}
6) EXECUTION SCREENSHOTS