Android Studio Quick Start Guide (1)

Source: Internet
Author: User

BKJIA: Android Studio is an integrated development environment that has not been available for a long time. It has been released to Google and Android Developers for free. Android Studio is based on IntelliJ IDEA, which is also a set of excellent Android development environments. In today's article, we will learn how to create a brand new Android project and give full play to the advantages of Android Studio.

1. Project Settings

Before you start to explore the world of Android Studio, you must click here to download and install it. Please note that you must install JDK 6 or later in advance. In Windows, first start the .exe file, and then follow the instructions in the Installation Wizard to complete step by step. If you are using OS X, double-click to start the disk image, and drag Android Studio to your application folder.

After successfully completing the above steps, your development environment should have been correctly set. Next, we are ready to use Android Studio to create our first Android Application. When you start Android Studio for the first time, you should see the welcome screen of the software. It also provides some options to guide us in the first step of Android application development.

In today's tutorial, We will select the "New Project" option. However, if you want to convert existing projects in Eclipse and other environments into Android Studio projects, you can also select "Import Project )". Android Studio can convert Eclipse projects into Android Studio projects and provide necessary configuration files for users in projects.

If you click "Open Project" in the option list, you can enable the Project that has been created using Android Studio or IntelliJ IDEA. If you select "Check out from Version Control Check)", you can Check the copy of the project under Version Control. In this way, we can use existing projects as the basis to quickly build new targeted versions.

Because we need to start from scratch, select "new project" here ". Now you will see a list of options to configure our new project. In today's tutorial, we will create a simple application to demonstrate some of the most important features of Android Studio. Like me, I believe that "HelloWorld" is the most suitable name for this new project.

As you can see in the above figure, I named my application HelloWorld and set the module name for it. If you are not familiar with IntelliJ IDEA, you may not know what the module is. A module is actually an independent functional unit that can be compiled, run, tested, and debugged. The module contains the source code, compiled scripts, and other components used for specific tasks.

When creating a new project, you can also set the software package name for the project. By default, Android Studio sets the last element of the project package name as the module name, but you can change it if you want.

Other settings include the storage location of the project on the device, the minimum and recommended SDK, the SDK required for project compilation, and the project topic. You can also ask Android Studio to create an Activity class, customize a startup icon for it, or set whether the project supports GridLayout, Fragments, Navigation Drawer, or Action Bar.

Here we will not Create a custom icon for our application, so you can deselect the "Create m launch icon to Create a custom startup icon" check box before the project. Click "Next)" to continue setting other projects.

As we checked the "Create activity creation activity" project check box in the previous step, the navigation will require you to configure the Activity class that Android Studio will Create for us.

As we will start to configure the blank Activity class, you can click "Next" to perform the following steps. You need to name the Activity class, main layout, and fragment layout. You can also set the navigation type. In today's example project, we set it to "None ". The following figure shows what our setup looks like.

After clicking "Finish", you will see the Android Studio user interface as shown in. The project explorer is on the left side of the window, and the workspace is on the right side. After setting the project in Android Studio, we can view the key functions of Android Studio one by one.

More exciting content on the next page


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.