If you want to start learning Android, but you don’t know where to start, what you should install or what do you need to know, you need to read this tutorial :D. I will show you the first “baby steps” in Android development.
In the first place you need to learn Java, but if you already have some knowledge about it, almost half of the problem is solved :).
You will have to download and install: JDK 7, and an IDE. As IDE I recommend Android Studio which has the Android SDK included.
Baby Step 1: Install JDK 7
- You can download the .exe file from here.
- Now you have to choose the file that meets you computer Operating System (Ex. If you have Windows 64 bit you have to choose Windows x64 like in the picture below, for Windows 32 bit you should select the above one: Windows x86)
- After the download is finished, install the JDK
- You can download the Android Studio together with Android SDK from here.
- After the download is finished start the installation.
SET ENVIRONMENT VARIABLE JAVA_HOME
In this last image, the Variable Value is the path where you JDK was installed. I installed it in C:\Program Files. Now the Android SDK should install without problem :)
- After the installation is completed a new window named Android SDK manager should open. This window let you install the Android versions (2.2, 2.3, 4.0 etc). You can choose to install only what you need but I usually install everything. So, in order to install everything select “New” and “Install packages” like in the picture below.
- Select the options like in the image below and click on Install. Now you must wait until the installation completes.
- After the download is done run the Android Studio because now we will create our first project (a “Hello World ” project) in Android :D
- Before to create the new project we have to make some configurations for the project that will be created with Android Studio. So click on the “Configure” button.
- Click on the “Project Defaults”
- Click on the “Project Structure”
- Set the SDK and JDK locations like in the picture (of course if you have them installed in another path you should set your path).
- Go to path where your Android Sdk was installed. Mine was installed in C:\Program Files (x86)\Android\android-studio\sdk. If you have Windows 32 bit it might be installed in Program Files (without x86)
- Now a new window will open from where you can choose for which version of Android you want to develop. In this example I will let the last version (4.2.2). Press OK.
- Press OK again and then go back until you get to the first screen.
- Click on the “Create New Project”
- Set the project name “Hello World” and the company domain (this will name your package too automatically but you can edit it)
- Click Next and select the Android API Level. Below, Android Studio gives you some information about the number of users who use that version of Android, which is pretty useful in my opinion.
- Now click the Finish button
- Now you will have to select some options in order to create your emulator. You can choose the options like in the picture below but feel free to select whatever you want :D