Book Image

Android Studio 2 Essentials - Second Edition

By : Belén Cruz Zapata
Book Image

Android Studio 2 Essentials - Second Edition

By: Belén Cruz Zapata

Overview of this book

Android Studio 2, the official IDE for Android application development, dramatically improves your workflow by letting you quickly see changes running on your device or emulator. It gives developers a unique platform by making app builds and deployment faster. This book will get you up and running with all the essential features of Android Studio 2 to optimize your development workflow. Starting off with the basic installation and configuration of Android Studio 2, this book will help you build a new project by showing you how to create a custom launcher icon and guiding you to choose your project. You will then gain an insight into the additional tools provided in Android Studio, namely the Software Development Kit (SDK) Manager, Android Virtual Device (AVD) Manager, and Javadoc. You’ll also see how to integrate Google Play Services in an Android project. Finally, you’ll become familiar with the Help section in Android Studio, which will enable you to search for support you might require in different scenarios.
Table of Contents (17 chapters)
Android Studio 2 Essentials Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Running Android Studio for the first time


Execute Android Studio and wait until it loads completely. This may take a few minutes the first time. The first time you execute Android Studio, you will be prompted by a welcome screen. As shown in the following screenshot, the welcome screen provides options to start a new project, open a project, import a project, or even perform more advanced actions, such as checking out a project from a version control system or modifying the configuration options:

Let's have a look at the various options available on the welcome screen:

  • Start a new Android Studio project: This creates a new Android project from scratch

  • Open an existing Android Studio project: This opens an existing project

  • Check out project from Version Control: This creates a new project by importing existing sources from a version control system

  • Import project (Eclipse ADT, Gradle, etc.): This creates a new project by importing existing sources from your system

  • Import an Android code sample: This imports a project containing the official Google code samples from GitHub (https://github.com/googlesamples)

The welcome screen, in addition to the main actions, also contains a configuration menu and a help menu, as described in the following:

  • Configure: This opens the configuration menu. The configuration menu has the following options:

    • SDK Manager: This opens the Android SDK tool that will be explained in Chapter 6, Tools.

    • Preferences: This opens the Android Studio preferences.

    • Plugins: This opens the plugins manager for Android Studio.

    • Import Settings: This imports the settings from a file (.jar).

    • Export Settings: This exports the settings to a file (.jar).

    • Settings Repository: This allows you to enter the URL of an external code repository.

    • Check for Update: This checks if there is an Android Studio update available.

    • Project Defaults: This opens the project default settings menu.

    • Settings: This opens the template project settings. These settings are also reachable through the Android Studio settings (Configure | Settings).

    • Project Structure: This opens the project and platform settings.

    • Run Configurations: This opens the run and debug settings.

  • Get Help: This opens the help menu:

    • Help Topics: This opens the Android Studio help, an online version

    • Tips of the Day: This opens a dialog with the tip of the day

    • Default Keymap Reference: This opens an online PDF containing the default keymap

    • Plugin Development: This opens a JetBrains website containing information for plugin developers