Google+

Android4Beginners.com

Apps development for Android step by step

Lesson 0.3: Creating a new app (a new Android Studio project)

We assume that you have completed installation process of Eclipse or Android Studio described in a previous lesson. So now just start the tool and follow a few steps to create a new app project.

Step 1: Choose New Project in Welcome screen of Android Studio (in Eclipse you have to choose File | New | Android Application Project from menu).

Android Studio Welcome Screen - start New Project

Android Studio Welcome Screen – start New Project

Step 2: Now you see scary screen with many options. Fortunately, we could ignore all of them (though one day we will try to understand them). You could just click Next.

But if you wish, you could change name of your app in the first field called Application name  (in Eclipse you have to think of some name, because it’s empty on start). Our app would be called My First Android App. Moreover there is a red warning related to Package name (it includes “example” word just for… example). Package name is a unique identifier of your app – none other app in the world should have identical package name when you want to make it public, but for learning purposes you could leave it as it is now. The standard way of naming packages is a reverse name of your website and the app name (like com.android4beginners.myfirstandroidapp), but it doesn’t have to be related to a real website. Click Next.

The app name is visible for users. Below you see warning about package name (Package Name Warning (Android Studio New Project)

The app name is visible for users. Below you see warning about package name (Package Name Warning (Android Studio New Project)

Package Name is a unique identifier of your app (Android Studio New Project)

Package Name is a unique identifier of your app (Android Studio New Project)

Step 3: On this screen you could change your app icon, but it’s not crucial at the moment. Click Next.

You could change the icon for your app, but it would be important when you start developing real apps (android Studio New Project).

You could change the icon for your app, but it would be important when you start developing real apps (android Studio New Project).

Step 4: The marked option (Blank activity) is the one we want. Click Next.

We start with an empty (blank) app so we will create almost everything on our own. Android Studio New Project.

We start with an empty (blank) app so we will create almost everything on our own. Android Studio New Project.

Step 5: And this is the final screen – again don’t change anything. Just click Finish and wait (be aware that it could last quite long at the first time as some extra components are downloaded, but later it starts much faster – if it takes too long, you could close the program and try again). You need an active Internet connection, otherwise you will see the error. In Eclipse everything is ready at once.

These are the names of your project files - leave them as they are now (Android Studio New Project)

These are the names of your project files – leave them as they are now (Android Studio New Project)

After configuring New Project, Android Studio has to download and install Gradle (tool for project building) - you need Internet connection for this - otherwise you would face an error.

After configuring New Project, Android Studio has to download and install Gradle (tool for project building) – you need Internet connection for this – otherwise you would face an error.

In the next lesson we will guide you through the project/app you have just created.

Previous:
Next: