O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Android Studio Essentials

Book Description

A fast-paced guide to get you up and running with Android application development using Android Studio

In Detail

Android Studio is an IDE that is based on the JetBrains IntelliJ IDEA. It gives developers a unique platform to develop and debug Android apps using various developer tools. It has a wide array of features such as live layout facility, Gradle build support, and template-based wizards, which makes it a preferred choice for developers.

Starting off with the basic installation and configuration of Android Studio, this book aids you in building a new project by helping you to create a custom launcher icon and guiding you to choose your activity. You then gain an insight on the additional tools provided in Android Studio, namely the Software Development Kit (SDK) Manager, Android Virtual Device (AVD) Manager, and Javadoc.

Finally, it helps you to familiarize yourself with the Help section in Android Studio that enables you to search for the help you might require in different scenarios.

What You Will Learn

  • Install Android Studio on your system and configure the Android Software Development Kit
  • Create your first project and explore its structure
  • Improve your productivity while programming by getting the best of the code editor
  • Design the user interface using layouts and learn how to handle the various user events
  • Integrate Google Play services into your project efficiently
  • Monitor your app while it's running and constantly improve its performance

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Android Studio Essentials
    1. Table of Contents
    2. Android Studio Essentials
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    8. 1. Installing and Configuring Android Studio
      1. Preparing for installation
      2. Downloading Android Studio
        1. Installing Android Studio
        2. Running Android Studio for the first time
      3. Configuring the Android SDK
      4. Summary
    9. 2. Starting a Project
      1. Creating a new project
        1. Configuring the project
        2. Selecting the form factors
        3. Choosing the activity type
      2. Summary
    10. 3. Navigating a Project
      1. The project navigation panel
      2. The project structure
        1. The resources folder
        2. Gradle
      3. Project settings
      4. Summary
    11. 4. Using the Code Editor
      1. Customizing the editor settings
      2. Code completion
      3. Code generation
      4. Navigating code
      5. Useful shortcuts
      6. Summary
    12. 5. Creating User Interfaces
      1. The graphical editor
      2. The text-based editor
      3. Creating a new layout
      4. Adding components
      5. Supporting multiple screens
      6. Changing the UI theme
      7. Handling events
      8. Summary
    13. 6. Tools
      1. The SDK Manager
      2. The AVD Manager
      3. The Navigation Editor
      4. Generating a Javadoc
      5. Version control systems
      6. Summary
    14. 7. Google Play Services
      1. How Google Play services work
      2. Services available
      3. Adding Google Play services to Android Studio
      4. Google Maps Android API v2
      5. Google+ Platform for Android
      6. Google Play In-App Billing v3
      7. Google Cloud Messaging
      8. Summary
    15. 8. Debugging
      1. Running and debugging
        1. Console
        2. Debugger
        3. LogCat
        4. Memory Monitor
      2. Android Device Monitor
        1. Threads
          1. Method profiling
        2. Heap
        3. Allocation Tracker
        4. Network Statistics
        5. File Explorer
        6. Emulator Control
        7. System Information
      3. Summary
    16. 9. Preparing for Release
      1. Understanding an APK file
      2. Steps to take before releasing your app
      3. Generating a signed APK
      4. Summary
    17. A. Getting Help
      1. Getting help from Android Studio
      2. Android online documentation
      3. Updates
      4. Summary
    18. Index