Learn Android Studio 4 - Efficient Java-Based Android Apps Development
معرفی کتاب «Learn Android Studio 4 - Efficient Java-Based Android Apps Development» نوشتهٔ Ted Hagos، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2020. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Learn Android Studio 4 - Efficient Java-Based Android Apps Development» در دستهٔ بدون دستهبندی قرار دارد.
Build and deploy your Java-based Android apps using the popular and efficient Android Studio 4 suite of tools, an integrated development environment (IDE) for today's Android developers. With this book, you’ll learn the latest and most productive tools in the Android tools ecosystem, ensuring quick Android app development and minimal effort on your part. Among these tools, you'll use the new Android Studio 4 features, including an upgraded CPU profiler UI, a new build speed window, the multi-preview feature, and the live layout inspector. After reading and using this book, you'll be able to efficiently build complete Java-based Android apps that run on any Android smartphone, tablet, smart watch and more. You’ll also be able to publish those apps and sell them online and in the Google Play store. **What You Will Learn** * Use Android Studio 4 to quickly and confidently build your first Android apps * Build an Android user interface using activities and layouts, event handling, images, menus, and the action bar * Work with new tools in Android Studio 4: Jetpack compose support, a smart editor for ProGuard rules, a new motion layout editor, a new Android Gradle plugin, and a fragment wizard with new fragment templates * Integrate data with data persistence * Access the cloud **Who This Book Is For** Those who may be new to Android Studio 4 or Android Studio in general. You may or may not be new to Android development. Some prior experience with Java is recommended. Table of Contents 5 About the Author 11 About the Technical Reviewer 12 Acknowledgments 13 Introduction 14 Chapter Overview 14 Chapter 1: Android Overview 17 History 17 The Operating System 19 Summary 21 Chapter 2: Android Studio 22 Setup 22 Configuring Android Studio 25 Hardware Acceleration 29 Summary 30 Chapter 3: Project Basics 32 Create a Project 32 Create an AVD 37 Summary 44 Chapter 4: Android Studio IDE 46 The IDE 46 Main Editor 49 Editing Layout Files 50 TODO Items 53 How to Get More Screen Space for Codes 54 Project Tool Window 56 Preferences/Settings 58 Summary 60 Chapter 5: Android Application Overview 61 What Makes Up an Android Project 61 Application Entry Point 64 Activities 65 Intents 67 Summary 68 Chapter 6: Activities and Layouts 69 Activity 69 Layout File 69 View and ViewGroup Objects 71 Containers 73 Activity Class 74 Hello World 75 Modifying Hello World 78 Summary 88 Chapter 7: Event Handling 89 Intro to Event Handling 89 Handling Long Clicks 95 Summary 101 Chapter 8: Intents 102 What Intents Are 102 Implicit Intents 107 Summary 112 Chapter 9: Fragments 113 Introduction to Fragments 113 Summary 122 Chapter 10: Navigation 123 Navigation Before Architecture Components 123 Navigation Components 126 Working with Jetpack Navigation 128 Summary 141 Chapter 11: Running in the Background 143 Basic Concepts 143 The UI Thread 144 Threads and Runnables 148 Summary 158 Chapter 12: Debugging 159 Types of Errors 159 Syntax Errors 159 Runtime Errors 160 Logic Errors 162 Debugger 165 Single Stepping 166 Summary 168 Chapter 13: Testing 169 Types of Testing 169 Unit Testing 171 JVM Test vs. Instrumented Test 172 A Simple Demo 173 Implementing the Test 177 Running a Unit Test 179 Instrumented Testing 182 Setting Up a Simple Test 183 Recording Espresso Tests 187 More on Espresso Matchers 190 Espresso Actions 191 Summary 192 Chapter 14: Working with Files 193 Internal and External Storage 193 Cache Directory 194 How to Work with Internal Storage 195 Summary 203 Chapter 15: BroadcastReceivers 204 Introduction to BroadcastReceivers 204 System Broadcast vs. Custom Broadcast 205 Two Ways to Register for Broadcast 205 Summary 213 Chapter 16: Jetpack, LiveData, ViewModel, and Room 214 Lifecycle Aware Components 214 ViewModel 218 LiveData 223 Room 228 Summary 235 Chapter 17: Distributing Apps 236 Prepare the App for Release 236 Prepare Material and Assets for Release 237 Configure the App for Release 237 Build a Release-Ready Application 238 Releasing the App 243 Summary 248 Chapter 18: Short Takes 249 Productivity Features 249 Importing Samples 249 Refactoring 251 Generate 253 Coding Styles 258 Live Templates 260 Important Keyboard Shortcuts 261 Summary 262 Appendix A: Java Refresher 263 A Brief History 263 Editions 264 Setup 265 Writing, Compiling, and Running 266 Syntax 267 A Typical Java Program 268 Compilation Unit 270 Comments 270 Statements 271 Keywords 271 Identifiers 272 Methods 273 Packages and Imports 275 Program Entry Point 276 Data Types 277 Overflow 281 Casting 281 Strongly and Statically Typed 282 Reference Types 283 Stack and Heap 284 Constants 285 Operators 286 Assignment 286 Arithmetic 286 Unary 288 Equality and Relational 289 Logical Operators 291 Loops and Branches 292 If and Switch Statements 292 Switch Statement 294 While Loop 297 For-Loop 298 Simple Application of Control Structures 299 Arrays 301 Array Creation 302 Managing Arrays 303 Using the Enhanced for-loop 305 More on Arrays 307 Reference Types 309 Classes 311 Inheritance 311 Constructors 313 Overloading 315 Overriding 316 Strings 318 String Creation 318 Strings Are Immutable 319 Why Can’t We Modify Strings 321 Comparing Strings 322 Common Usage 324 Exceptions 326 Index 329 "Build and deploy your Java-based Android apps using the popular and efficient Android Studio 4 suite of tools, an integrated development environment (IDE) for today's Android developers. With this book, you'll learn the latest and most productive tools in the Android tools ecosystem, ensuring quick Android app development and minimal effort on your part. Among these tools, you'll use the new Android Studio 4 features, including an upgraded CPU profiler UI, a new build speed window, the multi-preview feature, and the live layout inspector. After reading and using this book, you'll be able to efficiently build complete Java-based Android apps that run on any Android smartphone, tablet, smart watch and more. You'll also be able to publish those apps and sell them online and in the Google Play store. You will: Use Android Studio 4 to quickly and confidently build your first Android apps ; Build an Android user interface using activities and layouts, event handling, images, menus, and the action bar ; Work with new tools in Android Studio 4: Jetpack compose support, a smart editor for ProGuard rules, a new motion layout editor, a new Android Gradle plugin, and a fragment wizard with new fragment templates ; Integrate data with data persistence Access the cloud."--Publisher's description Front Matter ....Pages i-xix Android Overview (Ted Hagos)....Pages 1-5 Android Studio (Ted Hagos)....Pages 7-16 Project Basics (Ted Hagos)....Pages 17-30 Android Studio IDE (Ted Hagos)....Pages 31-45 Android Application Overview (Ted Hagos)....Pages 47-54 Activities and Layouts (Ted Hagos)....Pages 55-74 Event Handling (Ted Hagos)....Pages 75-87 Intents (Ted Hagos)....Pages 89-99 Fragments (Ted Hagos)....Pages 101-110 Navigation (Ted Hagos)....Pages 111-130 Running in the Background (Ted Hagos)....Pages 131-146 Debugging (Ted Hagos)....Pages 147-156 Testing (Ted Hagos)....Pages 157-180 Working with Files (Ted Hagos)....Pages 181-191 BroadcastReceivers (Ted Hagos)....Pages 193-202 Jetpack, LiveData, ViewModel, and Room (Ted Hagos)....Pages 203-224 Distributing Apps (Ted Hagos)....Pages 225-237 Short Takes (Ted Hagos)....Pages 239-252 Back Matter ....Pages 253-324
دانلود کتاب Learn Android Studio 4 - Efficient Java-Based Android Apps Development