0%

Book Description

Design, test, and debug your apps using Android Studio

About This Book

  • See what Material design is about and how to apply it your apps
  • Explore the possibilities to develop apps that works on any type of device
  • A step-by-step practical guide that will help you build improved applications, change their look, and debug them

Who This Book Is For

This book is for developers that are already familiar with programming concepts and have already started creating apps for the Android platform, for example, by using the Eclipse IDE. It is for developers who intend to use Android Studio as their primary IDE or want to use Android Studio more efficiently.

What You Will Learn

  • Develop Android Studio applications using Genymotion
  • Apply the concepts of Material design to your applications
  • Use memory monitoring tools to tweak performance
  • Build applications for Android Wearable
  • Capture images, video, or audio within your Android app
  • Use content providers to display data
  • Build apps with a cloud-based backend
  • Create media-related apps that will run on phones, phablets, tablets, and TVs

In Detail

This book starts with an introduction of Android Studio and why you should use this IDE rather than Eclipse. Moving ahead, it teaches you to build a simple app that requires no backend setup but uses Google Cloud or Parse instead. After that, you will learn how to create an Android app that can send and receive text and images using Google Cloud or Parse as a backend. It explains the concepts of Material design and how to apply them to an Android app. Also, it shows you how to build an app that runs on an Android wear device.

Later, it explains how to build an app that takes advantage of the latest Android SDK while still supporting older Android versions. It also demonstrates how the performance of an app can be improved and how memory management tools that come with the Android Studio IDE can help you achieve this.

By the end of the book, you will be able to develop high quality apps with a minimum amount of effort using the Android Studio IDE.

Style and approach

This is a practical guide full of challenges and many real-world examples that demonstrate interesting development concepts. Besides smartphones and tablets, it also covers Android wearable devices and Android TV. Although strongly recommended, it is not necessary to own any Android device yourself.

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 code file.

Table of Contents

  1. Android Studio Cookbook
    1. Table of Contents
    2. Android Studio Cookbook
    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. Sections
        1. Getting ready
        2. How to do it…
        3. How it works…
        4. There's more…
        5. See also
      5. Conventions
      6. Reader feedback
      7. Customer support
        1. Downloading the example code
        2. Downloading the color images of this book
        3. Errata
        4. Piracy
        5. Questions
    8. 1. Welcome to Android Studio
      1. Introduction
        1. Reasons why we should use Android Studio
        2. Fragmentation
      2. Creating your first app called Hello Android Studio
        1. Getting ready
        2. How to do it...
        3. How it works...
      3. The use of Gradle build scripts
        1. There's more...
        2. See also
      4. Testing your app with an emulator called Genymotion
        1. Getting ready
        2. How to do it...
        3. There's more...
      5. Refactoring your code
        1. How to do it…
        2. How it works...
        3. See also
    9. 2. Applications with a Cloud-based Backend
      1. Introduction
      2. Setting up Parse
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Consuming data from the cloud
        1. Getting ready
        2. How to do it...
        3. There's more...
      4. Submitting data to the cloud
        1. Getting ready
        2. How to do it…
        3. How it works...
        4. There's more...
        5. See also
    10. 3. Material Design
      1. Introduction
      2. Reycler views and card views
        1. Getting ready
        2. How to do it...
          1. Using card views
        3. There's more...
      3. Ripples and elevations
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
      4. Great transitions
        1. Getting ready
        2. How to do it…
          1. Theming
        3. How it works...
        4. There's more...
    11. 4. Android Wear
      1. Wearables
      2. Fullscreen wearable app
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
      3. Watch faces
        1. Getting ready
        2. How to do it…
        3. There's more...
      4. Notifications
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
    12. 5. Size Does Matter
      1. Size and context
      2. Phone, phablet, and tablet
        1. Getting ready
        2. How to do it...
          1. Glue it together!
        3. There's more...
      3. Media playback
        1. Getting ready
        2. How to do it...
        3. There's more...
      4. TV and media centre
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
    13. 6. Capture and Share
      1. Introduction
      2. Capturing images the easy way
        1. Getting ready
        2. How to do it...
        3. There's more...
      3. Image capturing using the Camera2 API
        1. Getting ready
        2. How to do it...
          1. Collapsing all methods
          2. Adding the sepia effect
        3. There's more...
      4. Image sharing
        1. Getting ready
        2. How to do it...
      5. Orientation issues
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
    14. 7. Content Providers and Observers
      1. Introduction
      2. Content providers
        1. There's more...
          1. Design patterns
          2. RxJava
        2. See also
      3. Consuming and updating data using a content provider – daily thoughts
        1. Getting ready
        2. How to do it...
          1. Queries
          2. Loader manager
        3. See also
      4. Change projections to display KPIs in your app
        1. Getting ready
        2. How to do it...
        3. See also
      5. Communicate with other apps using content providers
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
    15. 8. Improving Quality
      1. Introduction
      2. Patterns and support annotations
        1. MVC
        2. MVP
        3. The observer pattern
        4. The factory pattern
        5. The singleton
        6. Support annotations
        7. Google Play services
        8. Getting ready
        9. How to do it...
          1. Leaderboards
          2. Let the game begin!
        10. There's more...
        11. See also
      3. Unit testing using Robolectric
        1. Getting ready
        2. How to do it...
        3. There's more...
          1. Espresso
          2. Approaches
          3. Cucumber, Gherkin, and Calabash
          4. First things first!
        4. See also
      4. Code analysis
        1. Getting ready
        2. How to do it...
        3. See also
    16. 9. Improving Performance
      1. Introduction
      2. Memory profilers and performance tools
        1. Getting ready
        2. How to do it...
        3. There's more...
        4. See also
      3. Here comes the bad app – performance improvements
        1. Getting ready
        2. How to do it...
        3. There's more...
      4. Overdraw issues
        1. Getting ready
        2. How to do it...
          1. What layout type to use?
        3. There's more...
        4. See also
    17. 10. Beta Testing Your Apps
      1. Introduction
      2. Build variants
        1. Getting ready
        2. How to do it...
          1. Build variants
          2. Build types
        3. There's more...
      3. Runtime permissions
        1. Getting ready
        2. How to do it...
        3. There's more...
      4. Play Store beta distribution
        1. Getting ready
        2. How to do it...
          1. Rate your app
          2. Have a break
        3. There's more...
    18. Index
3.134.102.182