Kotlin and Android Development Featuring Jetpack: Build Better, Safer Android Apps
暫譯: Kotlin 與 Android 開發:以 Jetpack 為特色,打造更好、更安全的 Android 應用程式

Fazio, Michael

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2021-07-20
  • 售價: $1,700
  • 貴賓價: 9.5$1,615
  • 語言: 英文
  • 頁數: 446
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1680508156
  • ISBN-13: 9781680508154
  • 相關分類: AndroidJVM 語言
  • 立即出貨 (庫存 < 3)

商品描述

Start building native Android apps the modern way in Kotlin with Jetpack's expansive set of tools, libraries, and best practices. Learn how to create efficient, resilient views with Fragments and share data between the views with ViewModels. Use Room to persist valuable data quickly, and avoid NullPointerExceptions and Java's verbose expressions with Kotlin. You can even handle asynchronous web service calls elegantly with Kotlin coroutines. Achieve all of this and much more while building two full-featured apps, following detailed, step-by-step instructions.With Kotlin and Jetpack, Android development is now smoother and more enjoyable than ever before. Dive right in by developing two complete Android apps.

With the first app, Penny Drop, you create a full game complete with random die rolls, customizable rules, and AI opponents. Build lightweight Fragment views with data binding, quickly and safely update data with ViewModel classes, and handle all app navigation in a single location. Use Kotlin with Android-specific Kotlin extensions to efficiently write null-safe code without all the normal boilerplate required for pre-Jetpack + Kotlin apps. Persist and retrieve data as full objects with the Room library, then display that data with ViewModels and list records in a RecyclerView.

Next, you create the official app for the Android Baseball League. It's a fake league but a real app, where you use what you learn in Penny Drop and build up from there. Navigate all over the app via a Navigation Drawer, including specific locations via Android App Links. Handle asynchronous and web service calls with Kotlin Coroutines, display that data smoothly with the Paging library, and send notifications to a user's phone from your app.

Come build Android apps the modern way with Kotlin and Jetpack

What You Need:

You'll need the Android SDK, a text editor, and either a real Android device or emulator for testing. While not strictly required, it's assumed you're using Android Studio, which comes with the Android SDK and simplifies creating an emulator. Also, a few examples require JDK 1.8 or later, though all of these pieces can be completed in other ways when using JDK 1.6.

商品描述(中文翻譯)

開始以現代化的方式使用 Kotlin 和 Jetpack 的廣泛工具、庫及最佳實踐來構建原生 Android 應用程式。學習如何使用 Fragments 創建高效且具韌性的視圖,並使用 ViewModels 在視圖之間共享數據。使用 Room 快速持久化有價值的數據,並利用 Kotlin 避免 NullPointerExceptions 及 Java 的冗長表達式。您甚至可以優雅地使用 Kotlin 協程處理非同步網路服務調用。在詳細的逐步指導下,您可以在構建兩個功能完整的應用程式的同時實現所有這些功能。使用 Kotlin 和 Jetpack,Android 開發變得比以往任何時候都更加順暢和愉快。立即開始開發兩個完整的 Android 應用程式。

在第一個應用程式 Penny Drop 中,您將創建一個完整的遊戲,包含隨機擲骰子、自定義規則和 AI 對手。使用數據綁定構建輕量級的 Fragment 視圖,快速且安全地使用 ViewModel 類更新數據,並在單一位置處理所有應用程式導航。使用 Android 專用的 Kotlin 擴展來高效編寫無空值的代碼,而無需為舊版 Jetpack + Kotlin 應用程式所需的所有常規樣板代碼。使用 Room 庫持久化和檢索完整對象的數據,然後使用 ViewModels 顯示該數據並在 RecyclerView 中列出記錄。

接下來,您將創建 Android Baseball League 的官方應用程式。這是一個虛構的聯盟,但是真實的應用程式,您將使用在 Penny Drop 中學到的知識並從那裡開始構建。通過導航抽屜在應用程式中進行導航,包括通過 Android App Links 訪問特定位置。使用 Kotlin 協程處理非同步和網路服務調用,使用 Paging 庫平滑顯示該數據,並從您的應用程式向用戶的手機發送通知。

來吧,使用 Kotlin 和 Jetpack 以現代化的方式構建 Android 應用程式。

您需要的工具:
您需要 Android SDK、一個文本編輯器,以及一個真實的 Android 設備或模擬器進行測試。雖然不是絕對必要,但假設您正在使用 Android Studio,該工具附帶 Android SDK 並簡化了創建模擬器的過程。此外,某些示例需要 JDK 1.8 或更高版本,儘管使用 JDK 1.6 時也可以以其他方式完成所有這些部分。

作者簡介

Michael Fazio is a software developer and tech speaker who fell in love with Android starting with the original Galaxy S phone. He's been the Android lead for multiple billion-dollar companies and has seen the Android development process evolve from far too many Activities and a nigh unusable emulator to the actually enjoyable dev experience of Kotlin + Jetpack.

作者簡介(中文翻譯)

Michael Fazio 是一位軟體開發人員和技術演講者,他從最初的 Galaxy S 手機開始愛上了 Android。他曾擔任多家價值數十億美元公司的 Android 領導,並見證了 Android 開發過程的演變,從過多的 Activities 和幾乎無法使用的模擬器,發展到如今實際上令人愉快的 Kotlin + Jetpack 開發體驗。

最後瀏覽商品 (1)