How To Install Android Studio & Start Developing Android Apps

Are you confident Android development is for you? You will need a complete development environment so you can get started and get started. Let’s take a look at the necessary steps are necessary to prepare your computer for Android development, such as: installing Android Studio, the SDK (Android Development Kit), and the Java Development Kit (JDK). In the end, you stare at a blank screen, ready to program and test your apps!

Download the files

Note: To program Java on your computer, you must first download the Java Development Kit. We’ll do that before installing Android Studio. You can find it here – you want the “Java SE Development Kit.” Be sure to choose the correct version and installation file for your operating system and processor (most likely x64).

Install Android Studio

You can also get Android Studio here. Get the latest version and remember that this also includes the Android SDK and various other tools you need to get started.

Install Android Studio

It does not matter in which order you install these elements, but it makes sense to continue with Java first – otherwise, nothing will work. When we install Java on our computer when we install Android Studio, we also remove an extra step that we would otherwise have to go through. To get started, double-click the JDK program file and click Next to go through the steps. Make a note of where the JDK is installed, as this could be useful in the future.

Installing Android Studio is just as easy. Rerun the setup file, and then click Next to complete each step. Select the checkbox to install the Android SDK and Studio. It’s also a good idea to write down where everything is connected if you need it later. By default, your app will be moved to AppData \ Local, which is a hidden folder and can cause confusion then. If you change this, make sure your directory contains no spaces.

Install Android Studio

The installation process of Android Studio can be a bit tedious and tricky. Do not worry, you’ll never have to do it again (at least until you swap computers). Android Studio has been on the move since the early days – the whole process is now much more accessible.

Welcome to Android Studio: Start your first project

You are in! The headaches when installing Android Studio are over. Download it, and it should work out of the box. Previously you had to tell Android Studio where the JDK and the Android SDK were – now it does it automatically.

Let’s discuss how to set up your first project, so all you have to do is write!

Name the app

To name your new project, just click on the main menu and select File> New> New Project. You will be prompted to create a name for your application and to add an enterprise domain. The “package name” (the name of your app as the devices see it) consists of these two names. If you have a business, use the domain name that hosts your website (which identifies the app as yours). If not, do not worry – you can put everything here.

If you want to visit your Ultimate Calculator app and your business domain is Apps Forever.com, you might get a package name like com.appsforever.ultimatecalculator. This is the only name the user will ever see is “Ultimate Calculator.”

Targeting the right Android version

Next, you will be asked what type of device you are developing. The “Minimum SDK” is the lowest version of Android you want to support.

Install Android Studio

We will talk more about this in future posts. The lower the minimum SDK, the more users can test and buy your apps. For example, if your app relies on advanced Android Oreo features, you may only need to target newer versions of Android.

When installing Android Studio, you probably have the latest and most recent version of the Android SDK installed. Android SDKs are backward compatible, and you can support any lower version of Android. However, you need to update it if you want to promote something new in the future.

Just leave it as it is, but you should remember to tick “Phone and Tablet.” If you want to select a clock or TV, also choose the following check boxes.

Select an activity type

On the next screen, you can add an activity. Apps are made up of events – generally, these are the screens that you use when you use an app. It is very likely that you will launch your app with a splash screen or interface to display the user so you can add an activity at this time. You can also add activities later.

Install Android Studio

However, there are several options, such as Basic activity, lowest navigation activity, passive activity, and more.

Essential activities are your standard applications. These are the apps that contain the most frequently-recommended UI elements, such as: For example, the Floating Action Button (FAB). The FAB is a round button in the lower right corner of many apps in the Play Store (including almost all Google Apps). If you want to follow the design language of Google (Material Design) in the future, select Basic Activity. This leads to more code that we have to deal with, so I recommend staying with “Empty Activity.”

Name your activity

Click Next again to go to a screen where you can name your activity and the associated layout file, taking into account the look of your app and the location of the items. Activity files are written in Java and have the extension “.java,” while layout files use XML and have the extension “.xml.” When you create a large app project, you may have many different activities with different names. This can lead to confusion, so it is important to name them logically. If no activity in your app is considered a “home screen,” you may want to change it and name something else. For most people, it will be as good as it is!

first Android project

Your layout file will be moved to your resource folder along with the later created images and sound effects. Everything in this folder is needed only for lowercase letters. For this reason, the default name for your XML is activity_main.xml, while the default name for your Java file is MainActivity.java. MainActivity.java eliminates the absence of spaces by using something called “camel case,” where each new word starts with a lowercase or uppercase letter. Because we can not use capital letters in resource files, they must use underscores to separate individual words. And you thought installing Android Studio was hard!

For the moment you can keep these names as default – just click Next. Now you should look at your very first app – Congratulations!

Google has already filled this project with some code for you, so it should already work as a full Hello World app! If you could do it (which unfortunately requires a little more setup), you would “hello world!” Look at your screen. Now if you double-click the activity_main.xml file and then select Design view, you can see what it would look like.

Android Studio Hello World

To this single “Hello world!” Add a whole range of different files, as well as a lot of buttons and tools that are already causing nightmares.

Do not worry, it’s all very easy if you know what you’re doing. In a future post, we will demystify Android Studio so you can customize it to your liking and create your own apps. Now that you’ve got Android Studio installed and know how to build your first app project, the first crucial step in becoming an Android developer is over!

Start creating your Android app today!

We are proud to announce the Android Academy: the most advanced and comprehensive course covering all aspects of developing Android apps and being led by D’Vaughn Bell. Whether you are an absolute beginner with no programming skills or an experienced programmer, this course will guide you through the process of creating a more beautiful app.

Posted by on June 3, 2018