Friday, 3 June 2016

Creating a New Android Project "Hello Android Beginner"


Before you can build an app, you need to set up your development environment:

1. Download and install Android Studio.

2. Launch Android Studio.

3. From the Quick Start menu on the welcome screen, select Configure > SDK Manager.

If you already have a project open, you can open the SDK Manager by selecting Tools > Android > SDK Manager from the Android Studio menu bar.

4. In Android SDK Manager, select the following items and then click Install packages:

Tools/Android SDK Tools
Tools/Android SDK Platform-tools
Tools/Android SDK Build-tools
Android API (currently recommended: API 19)
Extras/Google Repository

Extras/Android Support Repository

Note: You need to have internet to install those packages.


Create a new project


The first step in the application development process is to create a new project within the Android Studio environment. Begin, therefore, by launching Android Studio so that the “Welcome to Android Studio” screen appears as illustrated in Figure 1-1:


Figure 1-1 Creating project/chose exciting/import..etc



Once this window appears, Android Studio is ready for a new project to be created. To create the new project, simply click on the Start a new Android Studio project option to display the first screen of the New Project wizard as shown in Figure 1-2:


Figure 1-2 Naming the Project

Once this window appears, you can name the project Hello World or FirstAndroidTutorail. Click next after naming your project and you will get the window shown in the Figure 1-3 this where you choose API Level you want your app to run on.

                                    
Figure 1-3 Choose API Level

This is where you will choose you minimum sdk api level you want to use for your app. You can click on API level to get more information about that API. Once you select the choice of your API click OK

Topic that covers Android API Levels Guide
                                 
                                   
Figure 1-4 Adding Activity

This screen suggests you add any activity at first. If you don’t want to add any activity at starting, 
you can select Add no activity option. If you have selected Phone and Tablet in option in the last screen then it
will display the only phone related suggestions. Now you will chose Blank Activity 
and click Next button


Figure 1-5 Change Activity name/Layout name/Menu Resource/Title

Here, you can customize your selected activity. You can change your Activity name from here. 
And also you can change Layout name (that will be attached to your activity), Title (Title of the activity), 
Menu Resource Name (Menu’s resource file name).

Name the Activity to AndroidSampleActivity and click the Finish button.