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 😀
- 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 😀
Search In Blog
Want to donate?
Recent Posts: My Android Solutions
If you ever wondered how to read and parse a simple JSON file stored in the assets directory of your Android project, here is a way to do it.
In this tutorial I will create a simple Sectioned RecyclerView that will show 2 sections and a few items in each section and how to move an item from one section to another. Note: For RecyclerView I used AndroidX imports and not android.support.v7.widget.RecyclerView! Setup We need to import the recycler view from AndroidX. The build.gradle…
Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. In my project I created a RecyclerView with 2 columns,…