Android Studio 3.5 Development Essentials - Java Edition
eBook - ePub

Android Studio 3.5 Development Essentials - Java Edition

  1. 778 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Android Studio 3.5 Development Essentials - Java Edition

Book details
Book preview
Table of contents
Citations

About This Book

The essential guide for developing high-end Android applications in JavaKey Features• Create an Android application from scratch• Gain in-depth knowledge of Android SDK and architecture• Master advanced topics such as Google Map integrationBook DescriptionAndroid applications have become an important part of our daily lives and lots of effort goes into developing an Android application. This book will help you to build your own Android applications using Java.Android Studio 3.5 Development Essentials - Java Edition first teaches you to install android development and test environment on different operating systems. Next, you will create an Android app and a virtual device in Android studio, and install an Android application on emulator. You will test apps on physical android devices, then study Android Studio code editor and constraint layout, Android architecture, the anatomy of an Android app, and Android activity state changes. The book then covers advanced topics such as views and widgets implementation, multi-window support integration, and biometric authentication; and, finally, you will learn to upload your app to Google Play console and handle the build process with Gradle.By the end of this book, you will have gained enough knowledge to develop powerful Android applications using Java.What you will learn• Create an Android app in Android Studio environment• Reduce the amount of code using Android Studio Editor• Differentiate between Java Code and XML layout files• Handle touch and multi-touch events• Implement gesture and pinch recognition system• Publish your application on Google Play consoleWho This Book Is ForIf you are interested in developing powerful Android Applications using Java, this is an ideal book for you. Basic knowledge of Java programming is recommended.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Android Studio 3.5 Development Essentials - Java Edition by Neil Smyth in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Java. We have over one million books available in our catalogue for you to explore.

Information

Year
2019
ISBN
9781951442033
Edition
1
1. Introduction
In 2018 Google introduced Android Jetpack to the developer community. Designed to make it quicker and easier to develop modern and reliable Android apps, Jetpack consists of a set of tools, libraries and architectural guidelines. The main elements of Android Jetpack consist of the Android Studio Integrated Development Environment (IDE), the Android Architecture Components and the Modern App Architecture Guidelines, all of which are covered in this latest edition of Android Studio Development Essentials.
Fully updated for Android Studio 3.5 and Android 10 (Q), the goal of this book is to teach the skills necessary to develop Android based applications using the Java programming language.
Beginning with the basics, this book provides an outline of the steps necessary to set up an Android development and testing environment. An overview of Android Studio is included covering areas such as tool windows, the code editor and the Layout Editor tool. An introduction to the architecture of Android is followed by an in-depth look at the design of Android applications and user interfaces using the Android Studio environment.
Chapters are also included covering the Android Architecture Components including view models, lifecycle management, Room database access, app navigation, live data and data binding.
More advanced topics such as intents are also covered, as are touch screen handling, gesture recognition, and the recording and playback of audio. This edition of the book also covers printing, transitions, cloud-based file storage and foldable device support.
The concepts of material design are also covered in detail, including the use of floating action buttons, Snackbars, tabbed interfaces, card views, navigation drawers and collapsing toolbars.
In addition to covering general Android development techniques, the book also includes Google Play specific topics such as implementing maps using the Google Maps Android API, and submitting apps to the Google Play Developer Console.
Other key features of Android Studio 3.5 and Android 10 are also covered in detail including the Layout Editor, the ConstraintLayout and ConstraintSet classes, constraint chains and barriers, direct reply notifications and foldable device support.
Chapters also cover advanced features of Android Studio such as App Links, Dynamic Delivery, the Android Studio Profiler and Gradle build configuration.
Assuming you already have some Java programming experience, are ready to download Android Studio and the Android SDK, have access to a Windows, Mac or Linux system and ideas for some apps to develop, you are ready to get started.
1.1 Downloading the Code Samples
The source code and Android Studio project files for the examples contained in this book are available for download at:
https://www.ebookfrenzy.com/retail/androidstudio35/index.php
The steps to load a project from the code samples into Android Studio are as follows:
1. From the Welcome to Android Studio dialog, select the Open an existing Android Studio project option.
2. In the project selection dialog, navigate to and select the folder containing the project to be imported and click on OK.
1.2 Feedback
We want you to be satisfied with your purchase of this book. If you find any errors in the book, or have any comments, questions or concerns please contact us at [email protected].
1.3 Errata
While we make every effort to ensure the accuracy of the content of this book, it is inevitable that a book covering a subject area of this size and complexity may include some errors and oversights. Any known issues with the book will be outlined, together with solutions, at the following URL:
https://www.ebookfrenzy.com/errata/androidstudio35.html
In the event that you find an error not listed in the errata, please let us know by emailing our technical support team at [email protected]. They are there to help you and will work to resolve any problems you may encounter.
2. Setting up an Android Studio Development Environment
Before any work can begin on the development of an Android application, the first step is to configure a computer system to act as the development platform. This involves a number of steps consisting of installing the Android Studio Integrated Development Environment (IDE) which also includes the Android Software Development Kit (SDK) and OpenJDK Java development environment.
This chapter will cover the steps necessary to install the requisite components for Android application development on Windows, macOS and Linux based systems.
2.1 System Requirements
Android application development may be performed on any of the following system types:
Windows 7/8/10 (32-bit or 64-bit though the Android emulator will only run on 64-bit systems)
macOS 10.10 or later (Intel based systems only)
ChromeOS device with Intel i5 or higher and minimum 8GB of RAM
Linux systems with version 2.19 or later of GNU C Library (glibc)
Minimum of 4GB of RAM (8GB is preferred)
Approximately 4GB of available disk space
•...

Table of contents

  1. 1. Introduction
  2. 2. Setting up an Android Studio Development Environment
  3. 3. Creating an Example Android App in Android Studio
  4. 4. Creating an Android Virtual Device (AVD) in Android Studio
  5. 5. Using and Configuring the Android Studio AVD Emulator
  6. 6. A Tour of the Android Studio User Interface
  7. 7. Testing Android Studio Apps on a Physical Android Device
  8. 8. The Basics of the Android Studio Code Editor
  9. 9. An Overview of the Android Architecture
  10. 10. The Anatomy of an Android Application
  11. 11. Understanding Android Application and Activity Lifecycles
  12. 12. Handling Android Activity State Changes
  13. 13. Android Activity State Changes by Example
  14. 14. Saving and Restoring the State of an Android Activity
  15. 15. Understanding Android Views, View Groups and Layouts
  16. 16. A Guide to the Android Studio Layout Editor Tool
  17. 17. A Guide to the Android ConstraintLayout
  18. 18. A Guide to using ConstraintLayout in Android Studio
  19. 19. Working with ConstraintLayout Chains and Ratios in Android Studio
  20. 20. An Android Studio Layout Editor ConstraintLayout Tutorial
  21. 21. Manual XML Layout Design in Android Studio
  22. 22. Managing Constraints using Constraint Sets
  23. 23. An Android ConstraintSet Tutorial
  24. 24. A Guide to using Apply Changes in Android Studio
  25. 25. An Overview and Example of Android Event Handling
  26. 26. Android Touch and Multi-touch Event Handling
  27. 27. Detecting Common Gestures using the Android Gesture Detector Class
  28. 28. Implementing Custom Gesture and Pinch Recognition on Android
  29. 29. An Introduction to Android Fragments
  30. 30. Using Fragments in Android Studio - An Example
  31. 31. Modern Android App Architecture with Jetpack
  32. 32. An Android Jetpack ViewModel Tutorial
  33. 33. An Android Jetpack LiveData Tutorial
  34. 34. An Overview of Android Jetpack Data Binding
  35. 35. An Android Jetpack Data Binding Tutorial
  36. 36. Working with Android Lifecycle-Aware Components
  37. 37. An Android Jetpack Lifecycle Awareness Tutorial
  38. 38. An Overview of the Navigation Architecture Component
  39. 39. An Android Jetpack Navigation Component Tutorial
  40. 40. Creating and Managing Overflow Menus on Android
  41. 41. Animating User Interfaces with the Android Transitions Framework
  42. 42. An Android Transition Tutorial using beginDelayedTransition
  43. 43. Implementing Android Scene Transitions – A Tutorial
  44. 44. Working with the Floating Action Button and Snackbar
  45. 45. Creating a Tabbed Interface using the TabLayout Component
  46. 46. Working with the RecyclerView and CardView Widgets
  47. 47. An Android RecyclerView and CardView Tutorial
  48. 48. A Layout Editor Sample Data Tutorial
  49. 49. Working with the AppBar and Collapsing Toolbar Layouts
  50. 50. An Android Studio Master/Detail Flow Tutorial
  51. 51. An Overview of Android Intents
  52. 52. Android Explicit Intents – A Worked Example
  53. 53. Android Implicit Intents – A Worked Example
  54. 54. Android Broadcast Intents and Broadcast Receivers
  55. 55. A Basic Overview of Threads and AsyncTasks
  56. 56. An Overview of Android Started and Bound Services
  57. 57. Implementing an Android Started Service – A Worked Example
  58. 58. Android Local Bound Services – A Worked Example
  59. 59. Android Remote Bound Services – A Worked Example
  60. 60. An Android Notifications Tutorial
  61. 61. An Android Direct Reply Notification Tutorial
  62. 62. Foldable Devices and Multi-Window Support
  63. 63. An Overview of Android SQLite Databases
  64. 64. The Android Room Persistence Library
  65. 65. An Android TableLayout and TableRow Tutorial
  66. 66. An Android Room Database and Repository Tutorial
  67. 67. Accessing Cloud Storage using the Android Storage Access Framework
  68. 68. An Android Storage Access Framework Example
  69. 69. Implementing Video Playback on Android using the VideoView and MediaController Classes
  70. 70. Android Picture-in-Picture Mode
  71. 71. An Android Picture-in-Picture Tutorial
  72. 72. Making Runtime Permission Requests in Android
  73. 73. Android Audio Recording and Playback using MediaPlayer and MediaRecorder
  74. 74. Working with the Google Maps Android API in Android Studio
  75. 75. Printing with the Android Printing Framework
  76. 76. An Android HTML and Web Content Printing Example
  77. 77. A Guide to Android Custom Document Printing
  78. 78. An Introduction to Android App Links
  79. 79. An Android Studio App Links Tutorial
  80. 80. A Guide to the Android Studio Profiler
  81. 81. An Android Biometric Authentication Tutorial
  82. 82. Creating, Testing and Uploading an Android App Bundle
  83. 83. An Overview of Android Dynamic Feature Modules
  84. 84. An Android Studio Dynamic Feature Tutorial
  85. 85. An Overview of Gradle in Android Studio
  86. Index