Android Tutorial For Beginners

Android Tutorial For Beginners

I have challenged my self to learn Android Development by my own very fast using Internet resources. I end up with installation and configuration of required software. Here is your first step to install Android SDK on windows machine. The most toughest part of the Android development is; where to start and how? To answer these questions I come up with step by step learning series of Android Development. Let’s start by installing required software.

Note Your firewall may don’t let Android virtual device emulator or eclipse plug-in to run the application properly. Configure the firewall to avoid errors while installing the application.

Below are the software you need to install on your machine.

  1. First make sure that you have JDK installed on your machine. Download JDK.
  2. Eclipse Classic version Link to download: Eclipse Classic version is recommended version for Android Development on Eclipse.
  3. Now, install Android Software Development Kit (Android SDK). Download Android SDK.
  4. As we are using Eclipse IDE for Android development we need to install ADT Plug-in for Eclipse. Download ADT plug-in.
  5. How to install ADT?
  6. Open Eclipse IDE=> Help=> Install new software.
  7. Install ADT  Give the downloaded ADT file location. Don’t unzip the ADT package. Alternatively, you can give online location as
    https://dl-ssl.google.com/android/eclipse/

Note: Installation of ADT plug-in is quite tricky and may take very long time by providing web URL of it. I really don’t have any idea why it takes very long time to load by directly giving web URL.

Now, You are ready to develop your first most loved and widely used Hello, world application. But before moving further I would like you to go through basics of Android development. Follow below URL to learn some fundamental components of Android Systems.

URL:http://developer.android.com/guide/topics/fundamentals.html

How to create Android Virtual Device?

Eclipse => Window >> AVD Manager. or you can directly open it from Android SDK Tools.

From AVD Manager click on New to create new emulator of your choice.

Name it as the name of your application.

Select target framework and click on Create AVD.

Click on Start to start the emulator. Click on Launch.

Wait for some time to get it fully loaded with required stuff. Have some patience.

image

Eclipse will deploy your application on AVD emulator.

Android Hello world Example.

In Eclipse, Click on menu File => New => Project

If you have installed ADT plug-in for Eclipse, you will see Android project under Android folder. Click next and give name to your project.

Android Project

Click on the newly created package found under src folder.

image

Modify the package to print your message.

package SatSony.Hello.Example;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class SatSonyHelloActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView tv = new TextView(this);
        tv.setText("Hello, Satalaj. This is your first android application.");
        setContentView(tv);
    }
}

Click Run to get your program deployed on Android virtual device.

ANdroid virtual device. Hello world example.

You can play with virtual device to get familiar with it.

Android virtual device. 

Tags:

Android Tutorial For BeginnersAndroid EditText TutorialAndroid WebView ExampleAndroid Button ClickAndroid Button onClickListener ExampleBest Android ApplicationsHow to earn money with android phoneAndroid install APK from computer applicationHow to remove android applicationsAndroid Market LoginJquery CallBack Tutorial

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.