DCI.

Android - Creating a new project

Cover Image for Android - Creating a new project
Isaiah Noel P. Salazar
Isaiah Noel P. Salazar

To start creating applications for Android, we first need to create a new project.

There will be a button available at the top of the starting page of Android Studio named "New Project".

Android Studio New Project Button

Creating a new project in Android Studio may be confusing for some people because of the multiple options given to us at the start.

Android Studio New Project Dialog

To keep things simple, we can start with the "Empty Views Activity" option

Android Studio Empty Views Option

Do note that other versions of Android Studio may not include this option.

For that scenario, we can simply pick the "No Activity" option.

Android Studio No Activity Option

After clicking next, we can then edit a few details of the project such as:

The name

Android Studio Project Name

The package name

Android Studio Project Package Name

The save location of the project

Android Studio Project Save Location

The programming language the project will use

Android Studio Project Programming Language

The minimum Android version the project (or the application) support

Android Studio Project Android Version

And the build configuration language of the project.

Android Studio Project Build Configuration Language

For now, we are going to be using these settings below:

Android Studio Project Settings

Upon clicking the "Finish" button, you will see this window pop up.

Android Studio IDE

Do note that you will need to let the IDE finish the Gradle project sync indicated near the top,

Android Studio Gradle Sync at the Top

and at the bottom of the window.

Android Studio Gradle Sync at the Bottom

After the Gradle has finished syncing, this will be the final look of the IDE.

Android Studio IDE Final Look

Do note that if you chose the "No Activity" option, you will not have the default "activity_main.xml" and "MainActivity.java" files at the start.

Android Studio No Activity IDE Final Look

To add a new activity, right-click on the "app" folder on the left and choose the "New > Activity > Empty Views Activity" option.

Android Studio No Activity New Activity

You can choose to either change or ignore the settings on the pop-up window.

Android Studio No Activity New Activity Settings

After clicking the "Finish" button, make sure to edit the "AndroidManifest.xml" located at the folders at the left at "app > manifests > AndroidManifest.xml" and modify the "<activity>" tag for the Activity you just created just like this example below.

Android Studio No Activity Manifest

This will serve as the default activity that will open as soon as your application starts.