وبلاگ بلیان

Android Studio Bumble Bee Essentials - Java Edition : Developing Android Apps Using Android Studio 2022. 1. 1 and Java

معرفی کتاب «Android Studio Bumble Bee Essentials - Java Edition : Developing Android Apps Using Android Studio 2022. 1. 1 and Java» نوشتهٔ Smyth, Neil;، منتشرشده توسط نشر Payload Media در سال 2022. این کتاب در فرمت epub، زبان انگلیسی ارائه شده است. «Android Studio Bumble Bee Essentials - Java Edition : Developing Android Apps Using Android Studio 2022. 1. 1 and Java» در دستهٔ بدون دسته‌بندی قرار دارد.

Fully updated for Android Studio Bumble Bee, Android Jetpack and the modern architectural guidelines and components, the goal of this book is to teach the skills necessary to develop Android-based applications using the Kotlin programming language.Beginning with the basics, this book provides an outline of the steps necessary to set up an Android development and testing environment followed by an introduction to programming in Kotlin including data types, flow control, functions, lambdas, coroutines and object-oriented programming.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 databases, 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 playback and recording 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.Other key features of Android Studio Bumble Bee and the Android SDK are also covered in detail including the Layout Editor, the ConstraintLayout and ConstraintSet classes, MotionLayout animation, constraint chains and barriers, view binding, direct reply notifications and multi-window support.Chapters also cover advanced features of Android Studio such as App Links, Dynamic Feature Modules, the Android Studio Profiler and Gradle build configuration.Assuming you already have some 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.Product DetailsPrint Edition Page Count: 790Print Page Size: 7.5" x 9.25"Language: EnglisheBook Format: PDF, ePub, MOBI (Kindle)Price: $29.99 (eBook) / $46.99 (Print) Table of Contents 1. Introduction ............................................................................................................................................... 1 1.1 Downloading the Code Samples....................................................................................................... 1 1.2 Feedback............................................................................................................................................... 1 1.3 Errata..................................................................................................................................................... 2 2. Setting up an Android Studio Development Environment....................................................................... 3 2.1 System Requirements.......................................................................................................................... 3 2.2 Downloading the Android Studio Package ..................................................................................... 3 2.3 Installing Android Studio................................................................................................................... 4 2.3.1 Installation on Windows............................................................................................................. 4 2.3.2 Installation on macOS ................................................................................................................. 4 2.3.3 Installation on Linux.................................................................................................................... 5 2.4 The Android Studio Setup Wizard.................................................................................................... 5 2.5 Installing Additional Android SDK Packages................................................................................. 6 2.6 Making the Android SDK Tools Command-line Accessible......................................................... 9 2.6.1 Windows 8.1 ................................................................................................................................. 9 2.6.2 Windows 10 ................................................................................................................................ 10 2.6.3 Windows 11 ................................................................................................................................ 10 2.6.4 Linux ............................................................................................................................................ 10 2.6.5 macOS.......................................................................................................................................... 10 2.7 Android Studio Memory Management.......................................................................................... 11 2.8 Updating Android Studio and the SDK ......................................................................................... 12 2.9 Summary ............................................................................................................................................ 12 3. Creating an Example Android App in Android Studio........................................................................... 13 3.1 About the Project .............................................................................................................................. 13 3.2 Creating a New Android Project..................................................................................................... 13 3.3 Creating an Activity ......................................................................................................................... 14 3.4 Defining the Project and SDK Settings .......................................................................................... 14 3.5 Modifying the Example Application............................................................................................... 15 3.6 Modifying the User Interface .......................................................................................................... 16 3.7 Reviewing the Layout and Resource Files...................................................................................... 21 3.8 Adding Interaction............................................................................................................................ 24 3.9 Summary ............................................................................................................................................ 25 4. Creating an Android Virtual Device (AVD) in Android Studio............................................................. 27 4.1 About Android Virtual Devices ...................................................................................................... 27 4.2 Starting the Emulator........................................................................................................................ 28 4.3 Running the Application in the AVD............................................................................................. 29 4.4 Running on Multiple Devices.......................................................................................................... 31 4.5 Stopping a Running Application..................................................................................................... 31 4.6 Supporting Dark Theme................................................................................................................... 32 4.7 Running the Emulator in a Separate Window............................................................................... 33 4.8 Enabling the Device Frame.............................................................................................................. 34 ii Table of Contents 4.9 AVD Command-line Creation ........................................................................................................ 35 4.10 Android Virtual Device Configuration Files............................................................................... 37 4.11 Moving and Renaming an Android Virtual Device ................................................................... 37 4.12 Summary .......................................................................................................................................... 37 5. Using and Configuring the Android Studio AVD Emulator .................................................................. 39 5.1 The Emulator Environment ............................................................................................................. 39 5.2 Emulator Toolbar Options............................................................................................................... 39 5.3 Working in Zoom Mode .................................................................................................................. 41 5.4 Resizing the Emulator Window....................................................................................................... 41 5.5 Extended Control Options............................................................................................................... 41 5.5.1 Location....................................................................................................................................... 42 5.5.2 Displays........................................................................................................................................ 42 5.5.3 Cellular ........................................................................................................................................ 42 5.5.4 Battery.......................................................................................................................................... 42 5.5.5 Camera......................................................................................................................................... 42 5.5.6 Phone ........................................................................................................................................... 42 5.5.7 Directional Pad........................................................................................................................... 42 5.5.8 Microphone................................................................................................................................. 42 5.5.9 Fingerprint .................................................................................................................................. 42 5.5.10 Virtual Sensors ......................................................................................................................... 43 5.5.11 Snapshots................................................................................................................................... 43 5.5.12 Record and Playback ............................................................................................................... 43 5.5.13 Google Play ............................................................................................................................... 43 5.5.14 Settings ...................................................................................................................................... 43 5.5.15 Help............................................................................................................................................ 43 5.6 Working with Snapshots................................................................................................................... 43 5.7 Configuring Fingerprint Emulation ............................................................................................... 44 5.8 The Emulator in Tool Window Mode............................................................................................. 45 5.9 Summary ............................................................................................................................................ 46 6. A Tour of the Android Studio User Interface .......................................................................................... 47 6.1 The Welcome Screen......................................................................................................................... 47 6.2 The Main Window ............................................................................................................................ 48 6.3 The Tool Windows............................................................................................................................ 49 6.4 Android Studio Keyboard Shortcuts .............................................................................................. 52 6.5 Switcher and Recent Files Navigation ............................................................................................ 53 6.6 Changing the Android Studio Theme ............................................................................................ 53 6.7 Summary ............................................................................................................................................ 54 7. Testing Android Studio Apps on a Physical Android Device.................................................................. 55 7.1 An Overview of the Android Debug Bridge (ADB)..................................................................... 55 7.2 Enabling USB Debugging ADB on Android Devices................................................................... 55 7.2.1 macOS ADB Configuration...................................................................................................... 56 7.2.2 Windows ADB Configuration.................................................................................................. 57 7.2.3 Linux adb Configuration........................................................................................................... 58 7.3 Resolving USB Connection Issues.................................................................................................. 58 7.4 Enabling Wireless Debugging on Android Devices..................................................................... 59 7.5 Testing the adb Connection............................................................................................................. 61 7.6 Summary ............................................................................................................................................ 61 iii Table of Contents 8. The Basics of the Android Studio Code Editor........................................................................................ 63 8.1 The Android Studio Editor............................................................................................................... 63 8.2 Splitting the Editor Window............................................................................................................ 65 8.3 Code Completion.............................................................................................................................. 66 8.4 Statement Completion...................................................................................................................... 67 8.5 Parameter Information..................................................................................................................... 68 8.6 Parameter Name Hints..................................................................................................................... 68 8.7 Code Generation............................................................................................................................... 68 8.8 Code Folding...................................................................................................................................... 69 8.9 Quick Documentation Lookup ....................................................................................................... 70 8.10 Code Reformatting.......................................................................................................................... 71 8.11 Finding Sample Code ..................................................................................................................... 71 8.12 Live Templates................................................................................................................................. 72 8.13 Summary .......................................................................................................................................... 72 9. An Overview of the Android Architecture .............................................................................................. 73 9.1 The Android Software Stack ............................................................................................................ 73 9.2 The Linux Kernel............................................................................................................................... 74 9.3 Android Runtime – ART.................................................................................................................. 74 9.4 Android Libraries.............................................................................................................................. 74 9.4.1 C/C++ Libraries ......................................................................................................................... 75 9.5 Application Framework.................................................................................................................... 75 9.6 Applications ....................................................................................................................................... 76 9.7 Summary ............................................................................................................................................ 76 10. The Anatomy of an Android Application .............................................................................................. 77 10.1 Android Activities........................................................................................................................... 77 10.2 Android Fragments......................................................................................................................... 77 10.3 Android Intents............................................................................................................................... 78 10.4 Broadcast Intents............................................................................................................................. 78 10.5 Broadcast Receivers ........................................................................................................................ 78 10.6 Android Services............................................................................................................................. 78 10.7 Content Providers........................................................................................................................... 79 10.8 The Application Manifest............................................................................................................... 79 10.9 Application Resources.................................................................................................................... 79 10.10 Application Context...................................................................................................................... 79 10.11 Summary ........................................................................................................................................ 79 11. An Overview of Android View Binding................................................................................................. 81 11.1 Find View by Id ............................................................................................................................... 81 11.2 View Binding .................................................................................................................................. 81 11.3 Converting the AndroidSample project....................................................................................... 82 11.4 Enabling View Binding................................................................................................................... 82 11.5 Using View Binding ........................................................................................................................ 82 11.6 Choosing an Option ....................................................................................................................... 83 11.7 View Binding in the Book Examples............................................................................................ 83 11.8 Migrating a Project to View Binding............................................................................................ 84 11.9 Summary .......................................................................................................................................... 85 12. Understanding Android Application and Activity Lifecycles............................................................... 87 12.1 Android Applications and Resource Management..................................................................... 87 iv Table of Contents 12.2 Android Process States................................................................................................................... 87 12.2.1 Foreground Process ................................................................................................................. 88 12.2.2 Visible Process.......................................................................................................................... 88 12.2.3 Service Process ......................................................................................................................... 88 12.2.4 Background Process................................................................................................................. 88 12.2.5 Empty Process .......................................................................................................................... 89 12.3 Inter-Process Dependencies ......................................................................................................... 89 12.4 The Activity Lifecycle...................................................................................................................... 89 12.5 The Activity Stack............................................................................................................................ 89 12.6 Activity States .................................................................................................................................. 90 12.7 Configuration Changes .................................................................................................................. 90 12.8 Handling State Change................................................................................................................... 91 12.9 Summary .......................................................................................................................................... 91 13. Handling Android Activity State Changes............................................................................................. 93 13.1 New vs. Old Lifecycle Techniques................................................................................................. 93 13.2 The Activity and Fragment Classes............................................................................................... 93 13.3 Dynamic State vs. Persistent State................................................................................................. 95 13.4 The Android Lifecycle Methods.................................................................................................... 96 13.5 Lifetimes........................................................................................................................................... 97 13.6 Foldable Devices and Multi-Resume............................................................................................ 98 13.7 Disabling Configuration Change Restarts................................................................................... 98 13.8 Lifecycle Method Limitations........................................................................................................ 98 13.9 Summary .......................................................................................................................................... 99 14. Android Activity State Changes by Example ....................................................................................... 101 14.1 Creating the State Change Example Project.............................................................................. 101 14.2 Designing the User Interface ....................................................................................................... 102 14.3 Overriding the Activity Lifecycle Methods ............................................................................... 102 14.4 Filtering the Logcat Panel.............................................................................................................104 14.5 Running the Application.............................................................................................................. 105 14.6 Experimenting with the Activity................................................................................................. 106 14.7 Summary ........................................................................................................................................ 107 15. Saving and Restoring the State of an Android Activity ....................................................................... 109 15.1 Saving Dynamic State ................................................................................................................... 109 15.2 Default Saving of User Interface State ........................................................................................ 109 15.3 The Bundle Class........................................................................................................................... 110 15.4 Saving the State.............................................................................................................................. 111 15.5 Restoring the State ........................................................................................................................ 112 15.6 Testing the Application................................................................................................................. 112 15.7 Summary ........................................................................................................................................ 112 16. Understanding Android Views, View Groups and Layouts ................................................................ 115 16.1 Designing for Different Android Devices.................................................................................. 115 16.2 Views and View Groups............................................................................................................... 115 16.3 Android Layout Managers........................................................................................................... 115 16.4 The View Hierarchy ...................................................................................................................... 117 16.5 Creating User Interfaces............................................................................................................... 118 16.6 Summary ........................................................................................................................................ 118 17. A Guide to the Android Studio Layout Editor Tool ............................................................................ 119 v Table of Contents 17.1 Basic vs. Empty Activity Templates ............................................................................................ 119 17.2 The Android Studio Layout Editor............................................................................................. 123 17.3 Design Mode.................................................................................................................................. 123 17.4 The Palette ...................................................................................................................................... 124 17.5 Design Mode and Layout Views..................................................................................................125 17.6 Night Mode .................................................................................................................................... 126 17.7 Code Mode..................................................................................................................................... 126 17.8 Split Mode ...................................................................................................................................... 127 17.9 Setting Attributes...........................................................................................................................127 17.10 Transforms................................................................................................................................... 129 17.11 Tools Visibility Toggles............................................................................................................... 130 17.12 Converting Views........................................................................................................................ 132 17.13 Displaying Sample Data ............................................................................................................. 132 17.14 Creating a Custom Device Definition..................................................................................... 133 17.15 Changing the Current Device....................................................................................................134 17.16 Layout Validation (Multi Preview)........................................................................................... 134 17.17 Summary ...................................................................................................................................... 135 18. A Guide to the Android ConstraintLayout.......................................................................................... 137 18.1 How ConstraintLayout Works..................................................................................................... 137 18.1.1 Constraints.............................................................................................................................. 137 18.1.2 Margins.................................................................................................................................... 138 18.1.3 Opposing Constraints............................................................................................................138 18.1.4 Constraint Bias....................................................................................................................... 139 18.1.5 Chains...................................................................................................................................... 140 18.1.6 Chain Styles............................................................................................................................. 140 18.2 Baseline Alignment............................................................................................................

Fully updated for Android Studio Bumble Bee, 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, the Database Inspector, 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.

Other key features of Android Studio Bumble Bee and Android are also covered in detail including the Layout Editor, the ConstraintLayout and ConstraintSet classes, MotionLayout Editor, view binding, constraint chains, barriers, and direct reply notifications.

Chapters also cover advanced features of Android Studio such as App Links, Dynamic Delivery, Gradle build configuration, and submitting apps to the Google Play Developer Console.

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 have ideas for some apps to develop, you are ready to get started.

Fully updated for Android Studio Bumble Bee, 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, the Database Inspector, 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. Other key features of Android Studio Bumble Bee and Android are also covered in detail including the Layout Editor, the ConstraintLayout and ConstraintSet classes, MotionLayout Editor, view binding, constraint chains, barriers, and direct reply notifications. Chapters also cover advanced features of Android Studio such as App Links, Dynamic Delivery, Gradle build configuration, and submitting apps to the Google Play Developer Console. 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 have ideas for some apps to develop, you are ready to get started.
دانلود کتاب Android Studio Bumble Bee Essentials - Java Edition : Developing Android Apps Using Android Studio 2022. 1. 1 and Java