Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

1.3 Project Setup

In this lesson, we’ll create a new Android Studio project and configure its dependencies. Then, we’ll add a few image assets using the Vector Asset Studio. I’ll also explain how we’ll be using the powerful Realm database for local data storage.

Related Links

1.3 Project Setup

In this course, I will be using Android Studio as my IDE. It is the official IDE for Android application development and it is available for free. So, I suggest that you download and install it on your computer before proceeding. In this lesson, we will be setting up a new Android Studio project and adding a few dependencies and image resources to it. Start by launching Android Studio. In the Quick Start menu, select the Start a new Android Studio project option. I will call this project, Shopping List. The minimum SDK we're going to support, is Android 4.4. Select Add No Activity here because we will be creating the activities manually later. Press Finish to generate the project. We now want to add three vectory measures to our app, an edit icon, an undo icon, and an add icon. To add them, right click on the drawable folder of your project and select New Vector Asset. Next, click on the Choose button. Open the content category. I will add the Add icon first. Press Next and then press Finish. Repeat the same steps for the Edit icon. Open Vector Assets studio, open the Content category and choose this icon which looks like a pencil. Repeat the same steps one more time for the Undo icon. Now that we have added all the images, let's start working on the dependencies of this project. Open build.gradle of the app module. Here, scroll down to the dependencies section. The first library we are going to add is the design support library. Adding this library is important because it contains most of the material design URL widgets we will be using in this course. Adding it is easy, just copy and paste the line for the appcompat-v7 dependency and change the string appcompat-v7 to design. Okay, let's move on to another dependency now. Our app is going to need a database to store all the shopping list items. In this course, we will be using Realm as the database, because it is both faster and easier to work with. To add it to the project, add a new compile dependency for io.realm:realm-android. I'm going to use Version 0.87.5. Finally, press the Sync Now button to complete the dependencies configuration. The project set up is complete, in the next lesson we are going to start adding material design widgets to our app. Thanks for watching.

Back to the top