Kotlin and Android Development featuring Jetpack. Build Better, Safer Android Apps 160094

Паперова книга
160094
Kotlin and Android Development featuring Jetpack. Build Better, Safer Android Apps - фото 1
  • ISBN
    978-1680508154
  • Видавництво
  • Автор
  • Рік
    2021
  • Мова
    Англійська
  • Ілюстрації
    Чорно-білі
12.04
2'350
2 людини

Все про “Kotlin and Android Development featuring Jetpack. Build Better, Safer Android Apps”

Від видавця

 With Kotlin and Jetpack, Android development is now smoother and more enjoyable than ever before. In this book, we’re going to dive right into Android development by writing two complete Android apps.

With the first app, Penny Drop, you will create a full game complete with random die rolls, customizable rules, and AI opponents. You’ll build lightweight Fragment views with data binding, quickly and safely update data with ViewModel classes, and handle all app navigation in a single location. You’ll be guided to use Kotlin with Android-specific Kotlin extensions to efficiently write null-safe code without all the normal boilerplate required for pre-Jetpack + Kotlin apps. You’ll see how to 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’ll create the official app for the Android Baseball League. It’s a fake league but a real app, where you use what you learn with Penny Drop and build up from there.

You’ll navigate all over the app via a navigation drawer, including specific locations via Android App Links. You’ll 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.

Ready? Let’s build some Android apps!

 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.

Зміст

 Penny Drop

Initialize the Penny Drop App

 How to Play Penny Drop

 Create the App

 What Else Do We Need?

 Summary and Next Steps

Build Views with Fragments

 Build a Fragment (Pick Players)

 Add Data Binding to the App

 Build Another Fragment (Game)

 Summary and Next Steps

Bind Data with ViewModels

 Create a ViewModel (Pick Players)

 Bind ViewModel to a Fragment (Pick Players)

 Add AI Spinner to Player List Items

 Customize the Player List Items

 Create Another ViewModel (Game)

 Bind ViewModel to a Fragment (Game)

 Summary and Next Steps

Update LiveData with Conditional Game Logic

 Create GameHandler

 Start a Game

 More GameViewModel Functions: roll() and pass()

 Update the UI

 Create Turn Summary Text

 Handle AI Turns with Coroutines and First-Class Functions

 Summary and Next Steps

Persist Game Data with Room

 Add Room to the App

 Add a RoomDatabase Class

 Create a DAO Class

 Add Entity Classes

 Add Data During Database Creation

 Add Converters to the Database

 Create a Repository Class

 Access the Database from a ViewModel

 Update the UI Data Binding

 Summary and Next Steps

Build a List with RecyclerView

 Add the RecyclerView

 Build the List Item Layout

 Create a Custom ListAdapter

 Connect Adapter to RecyclerView

 Load Data into RecyclerView from Database

 Summary and Next Steps

Customize an App with Settings and Themes

 Add a New SettingsFragment

 Use Saved Preferences

 Add Themes

 Change Themes

 Add Night Mode Support

 Add an About the App Section

 Summary and Next Steps

Android Baseball League

Initialize the Android Baseball League App

 Welcome to the Official ABL App

 Create the App

 Configure the Activity

 Add the First Fragment

 Summary and Next Steps

Navigate via Navigation Drawer

 Add the Navigation Drawer

 Add Fragments (Standings and Single Team)

 Pass Data with Safe Args

 Navigate Directly via a Deep Link

 Summary and Next Steps

Load and Save Data with Coroutines and Room

 Create a Database

 Work with Retrofit

 Load Data from External APIs

 Add a New Fragment (Scoreboard)

 Summary and Next Steps

Display Data with Paging

 Add Two New Fragments (Leaders and Single Player)

 Add a New Fragment (Players)

 Handle Paging Data in the App

 Display Paging Data in a RecyclerView List

 Summary and Next Steps

Personalize the Android Baseball League App

 Build a Settings Screen via Code

 Extract Colors with Palette

 Add and Group Additional Preferences

 Reliably Complete Background Work with WorkManager

 Summary and Next Steps

Send Info to and from the Android Baseball League App

 Alert Users with Notifications

 Send Cloud-Based Alerts with Push Notifications

 Share Links with Android Sharesheet

 Summary and Next Steps

Test Your App

Unit Test Your App with JUnit

 Add Unit Tests

 Test a ViewModel Class

 Test a Data Access Object (DAO)

 Summary and Next Steps

Test Your App’s UI with Espresso

 Add UI Tests

 Add More UI Tests

 Summary and Next Steps

Appendixes

Install Android Studio

  Download Android Studio

  Install Android Studio

  Set Up an Android Virtual Device (AVD)

 Troubleshooting Your App

  Debug Your App

  Display Messages with the Toast Class

  Log Messages to Logcat

  Wrapping Up

Gradle Dependencies

 Classpath Dependencies

 Implementation Dependencies

 KAPT Dependencies

 Test Dependencies

Рецензії

0

Всі характеристики

  • Видавництво
  • Автор
  • Категорія
  • Рік
    2021
  • Сторінок
    446
  • Формат
    180х230 мм
  • Обкладинка
    М'яка
  • Тип паперу
    Офсетний
  • Мова
    Англійська
  • Ілюстрації
    Чорно-білі
  • Термін поставки
    25-30 дней

Товар входить до категорії

  • Самовивіз з відділень поштових операторів від 45 ₴ - 80 ₴
  • Доставка поштовими сервісами - тарифи перевізника
Схожі товари
Pro Android 5 5th ed.
46116
Dave MacLean, Satya Komatineni, Grant Allen
850 ₴
Android Cookbook: Problems and Solutions for Android Developers 2nd Edition
67213
Ian F. Darwin
1'200 ₴
Head First. Программирование для Android на Kotlin. 3-е изд
254675
Дон ГриффитсДэвид Гриффитс
1'116 ₴1'200 ₴
Mobile DevOps Playbook: A practical guide for delivering high-quality mobile applications like a pro
264544
Moataz Nabil
1'300 ₴
How to Build Android Apps with Kotlin: A practical guide to developing, testing, and publishing your first Android apps, 2nd Edition
265500
Alex ForresterEran BoudjnahAlexandru DumbravanJomar Tigcal
1'300 ₴
Programming Android with Kotlin. Achieving Structured Concurrency with Coroutines. 1st Ed.
244782
Pierre-Olivier Laurence, Amanda Hinchman-Dominguez
2'100 ₴
Advanced Algorithms and Data Structures
160093
Marcello La Rocca
3'000 ₴
Mastering Android NDK: Master the skills you need to develop portable, highly-functional Android applications using NDK
199178
Sergey KosarevskyVictor Latypov
3'780 ₴