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).
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.
Step 3: On this screen you could change your app icon, but it’s not crucial at the moment. Click Next.
Step 4: The marked option (Blank activity) is the one we want. Click Next.
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.
In the next lesson we will guide you through the project/app you have just created.