Kotlin and Android Development featuring Jetpack: Build Better, Safer Android Apps

0
(0)

Kotlin and Android Development featuring Jetpack: Build Better, Safer Android Apps
 

  • Author:Michael Fazio
  • Length: 446 pages
  • Edition: 1
  • Publisher: Pragmatic Bookshelf
  • Publication Date: 2021-07-06
  • ISBN-10: 1680508156
  • ISBN-13: 9781680508154
  • Sales Rank: #670572 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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开发:构建更好、更安全的Android应用

    使用Jetpack丰富的工具、库和最佳实践,开始用Kotlin以现代方式构建本地Android应用程序。了解如何使用片段创建高效、有弹性的视图,并使用ViewModel在视图之间共享数据。使用Room快速持久化有价值的数据,避免NullPointerExceptions和Java使用Kotlin的冗长表达式。您甚至可以使用Kotlin协程优雅地处理异步Web服务调用。在构建两个功能齐全的应用程序的同时,按照详细的循序渐进的说明,实现所有这些并实现更多。有了Kotlin和Jetpack,Android开发现在比以往任何时候都更顺畅、更愉快。通过开发两款完整的Android应用程序,直接投入其中。

    使用第一个应用程序Penny Drop,您可以创建一个完整的游戏,其中包括随机掷骰子、可定制的规则和AI对手。使用数据绑定构建轻量级片段视图,使用ViewModel类快速安全地更新数据,并在一个位置处理所有应用程序导航。使用Kotlin和Android特定的Kotlin扩展来高效地编写零安全代码,而不需要使用Jetpack+Kotlin之前的应用程序所需的所有常规模板。使用Room库将数据作为完整对象进行持久化和检索,然后使用视图模型显示该数据,并在RecillerView中列出记录。

    接下来,您将为Android棒球联盟创建官方应用程序。这是一个虚假的联盟,但却是一个真正的应用程序,在这里你可以使用你在Penny Drop中学到的东西,并在那里建立起来。通过导航抽屉在整个应用程序中导航,包括通过Android应用程序链接的特定位置。使用Kotlin Coroutines处理异步和Web服务调用,使用Pages库流畅地显示数据,并从您的应用程序向用户的手机发送通知。

    来用Kotlin和Jetpack以现代的方式构建Android应用程序吧!

    您需要的:

    您将需要Android SDK、文本编辑器以及用于测试的真正的Android设备或仿真器。虽然不是严格要求,但它假定您使用的是Android Studio,它随Android SDK一起提供,并简化了模拟器的创建。此外,有几个示例需要JDK 1.8或更高版本,尽管在使用JDK 1.6时,所有这些部分都可以通过其他方式完成。

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册