Android 程式碼研究室
(已淘汰) 使用建構變化版本建立不同版本的應用程式
35 分鐘
Updated 2025年4月3日
在這個程式碼實驗室中,您將使用建構變化版本來建立 DiceRoller 應用程式的預設版本 (「demo」版) 和付費版本 (「full」版)。
使用 Macrobenchmark 檢查應用程式效能
48 分鐘
Updated 2025年4月3日
在這個程式碼研究室中,您將學習如何用 Jetpack Macrobenchmark 測量應用程式啟動時間和影格時間。
Compose for Wear OS 程式碼實驗室
57 分鐘
Updated 2025年4月3日
在這個程式碼研究室中,您將瞭解如何使用全新的 Compose for Wear OS,將 Compose 知識應用到穿戴式裝置。最後,您將會在應用程式中建立簡易與進階的穿戴式裝置專用可組合項。
在 Wear OS 中建立第一個資訊方塊
47 分鐘
Updated 2025年4月3日
在本程式碼研究室中,您將瞭解如何建立自己的 Wear OS 資訊方塊。您將使用 Tiles Material Components 程式庫,輕鬆建構符合 Material Design 指南的 UI,並在開發期間於 Android Studio 中預覽資訊方塊。
使用 Jetpack Compose 進行 Material Design 主題設定
Updated 2025年4月3日
瞭解如何在應用程式中加入 Material Design 主題設定,包括顏色、形狀和字體排版。
使用活動嵌入功能和 Material Design 建構清單/詳細資料版面配置
1 小時 22 分鐘
Updated 2025年4月3日
透過活動嵌入功能,以活動為依據的應用程式就能支援大螢幕的雙窗格版面配置,不必重構程式碼。您將新增一些依附元件、建立 XML 設定檔、實作初始化器,並在應用程式資訊清單中新增一些內容。或者,如果您偏好使用程式碼,可以在主要活動的 onCreate() 方法進行幾個 Jetpack API 呼叫。在本程式碼研究室中,您將使用 XML 和 API 開發方法,將以活動為依據的應用程式更新為清單/詳細資料的雙窗格版面配置。
進階活動嵌入功能
1 小時 7 分鐘
Updated 2025年4月3日
在本程式碼研究室中,您將瞭解如何使用新推出的活動嵌入功能,提升應用程式在大螢幕上的使用體驗。這些功能包括窗格擴展、重疊式呈現、全螢幕對話方塊調暗和活動堆疊固定。
使用 Jetpack Compose 新增鍵盤、滑鼠、觸控板和觸控筆支援功能
1 小時 9 分鐘
Updated 2025年4月3日
瞭解如何使用 Compose 開發支援鍵盤和指標裝置 (例如滑鼠和觸控板) 的應用程式。
Android 基礎知識 02.2:活動生命週期和狀態
Updated 2025年4月3日
在本程式碼研究室中,您可以在 TwoActivities 應用程式中新增記錄陳述式,觀察活動生命週期的變化。您可以利用這些變更,並瞭解如何在這些情況下處理使用者輸入內容。
透過 Jetpack WindowManager 支援折疊式和雙螢幕裝置
1 小時
Updated 2025年4月3日
瞭解如何透過 Jetpack WindowManager 程式庫,讓應用程式適應新的板型規格,例如摺疊式裝置和雙螢幕裝置。
透過 Room 讀取及更新資料
Updated 2025年4月3日
瞭解如何在 Android Kotlin 應用程式中使用 Room 讀取及更新資料。Room 是 Android Jetpack 中的資料庫。設定資料庫時,Room 可處理很多雜務,讓您的應用程式能使用一般的函式呼叫與資料庫互動。
Jetpack Compose 中的無障礙功能
39 分鐘
Updated 2025年4月3日
在本程式碼研究室中,您將學習如何讓 Compose 應用程式更易於使用。瞭解如何增加觸控目標、新增內容說明、點擊標籤、自訂動作等等。
使用 Room 保存資料
Updated 2025年4月3日
瞭解如何在 Android Kotlin 應用程式中使用 Room。Room 是 Android Jetpack 中的持續性資料庫。Room 是 SQLite 上的抽象層,提供了便利的 API,可用來設定、調整及查詢資料庫。
Compose 中的 ViewModel 和狀態
Updated 2025年4月3日
在本程式碼研究室中,您將瞭解如何使用 ViewModel 這個架構元件,並藉由實作 ViewModel,在設定變更期間保留應用程式狀態。
使用 Material 3 在 Compose 中設定主題
31 分鐘
Updated 2025年4月3日
本程式碼研究室的目標是使用新推出的 Material Design 3 和 Material You 實作方法,示範如何在 Jetpack Compose 中設定主題。
(已淘汰) Android Sleep API 程式碼研究室
30 分鐘
Updated 2025年4月3日
瞭解如何註冊 Android Sleep API 來取得 SleepSegmentEvents 和 SleepClassifyEvents。
在 Android 應用程式中加入 Play Integrity
1 小時 18 分鐘
Updated 2025年4月3日
在這個程式碼研究室中,您需要將 Play Integrity API 加入範例應用程式。您會使用 Play Integrity API 要求完整性判定結果,藉此判斷應用程式的授權狀態和完整性,以及執行應用程式的裝置完整性狀態。
Android 隱私權程式碼研究室
Updated 2025年4月3日
Android 已在過去幾個版本推出許多個別隱私權功能,我們很高興能協助您在應用程式中採用這些功能!本程式碼研究室旨在統整個別隱私權功能,並向開發人員說明應用程式如何存取使用者的私人資料,並在現有的執行應用程式中採用隱私權的最佳做法。
運用 Material Design 設計自動調整式版面配置
4 分鐘
Updated 2025年4月3日
瞭解如何使用 Material Design 的自訂調整式設計原則,為各種螢幕大小提供一致的使用體驗。在本程式碼研究室中,您會將行動裝置的設計擴展到平板電腦格式,並瞭解回應式格線、自動調整式組合模式以及正確的元件。
開始在 Android 上使用 Vulkan
59 分鐘
Updated 2025年4月3日
Vulkan 是高效能的新型圖像 API,可提供低階的 GPU 存取方式,並以多種做法最佳化實作項目,但缺點是不易使用。替代的 OpenGL ES 雖較為簡單,但其建構基礎是舊版的硬體架構,因此功能和效能不如 Vulkan。OpenGL ES 目前已終止開發,其他平台也多半不再支援 OpenGL ES。Android 計劃讓 OpenGL ES 下線並改用 Vulkan,因此需要協助開發人員做好準備。
Jetpack Compose 中的進階狀態和連帶效果
41 分鐘
Updated 2025年4月3日
在本程式碼研究室中,您將學習 Jetpack Compose 的狀態和連帶效果進階概念。瞭解如何為複雜的有狀態可組合項建立狀態容器、建立協同程式並透過 Compose 程式碼呼叫暫停函式,以及如何觸發連帶效果來達成不同的用途。
透過 Ongoing Activity API 以全新方式與 Wear OS 使用者互動
30 分鐘
Updated 2025年4月3日
透過 Wear 的 Ongoing Activity API,開發人員只需利用少量的程式碼,使用者即可從錶面和應用程式啟動器瞭解應用程式的執行狀態;此外,使用者只要輕觸一下,就能返回應用程式進行重要活動。
使用 WorkManager 處理背景工作
Updated 2025年4月3日
Android 的 WorkManager API 可讓您輕鬆在背景執行工作。WorkManager 不僅能夠建立可查詢、鏈結和重複使用的工作,也是 Android 推薦的工作排程器。本程式碼研究室將協助您全盤瞭解 WorkManager,一舉囊括簡易工作編寫和較複雜的鏈結工作說明。
Android Basics with Compose
Updated 2025年4月1日
瞭解使用 Jetpack Compose 建構 Android 應用程式的基本概念;Jetpack Compose 是用於建構 Android 應用程式的推薦 UI 工具包
Activity Recognition Transition API Codelab
31 分鐘
Updated 2025年2月6日
瞭解如何使用 Activity Recognition Transition API,在應用程式中建構強大的內容功能
運用 ML Kit 和 CameraX 辨識、辨識語言及翻譯文字:Android
Updated 2025年2月6日
在本程式碼研究室中,您將使用 ML Kit 建構 Android 應用程式,該應用程式會使用裝置端機器學習功能,辨識語言並翻譯 59 種語言的文字。您也會瞭解如何整合 CameraX 程式庫,透過即時攝影機動態饋給完成這些工作。
使用 Compose 在以檢視區塊為基礎的 Android 應用程式中新增自動調整式版面配置
Updated 2024年12月23日
瞭解如何使用 Jetpack Compose,在以檢視區塊為基礎的 Android 應用程式中新增自動調整式版面配置。
設定、實作及驗證 Android 應用程式連結
Updated 2024年12月23日
在本程式碼研究室中,您將建構列出多間餐廳的 Android 應用程式。課程目標在於協助您設計、設定及驗證 Android 應用程式連結。
在 Jetpack Compose 中測試
Updated 2024年12月11日
在本程式碼研究室中,您將瞭解如何測試使用 Jetpack Compose 建立的使用者介面。您編寫第一個測試,同時瞭解獨立測試、偵錯測試、Semantics 樹狀結構和同步處理。
建構及測試可在車輛停妥時使用的 Android Automotive OS 應用程式
Updated 2024年12月6日
在本程式碼研究室中,您將瞭解如何建構及測試 Android Automotive OS 裝置在車輛停妥時帶來的優質體驗,內容包括如何充分運用各種車用螢幕,以及如何透過標準 Android 機制,讓使用者在車輛特有的各種情境中控制內容播放。
使用 Jetpack WindowManager 最佳化適用於摺疊式裝置的相機應用程式
Updated 2024年12月6日
這些年來,Android 裝置不斷演進,除了推出了各種尺寸的機種,外觀、螢幕和功能也更加多元。不過,從一開始,使用手機拍照就一直是最重要的用途之一。時至今日,相機功能仍是消費者購買手機時,考慮的其中一項主因。
在 Android 應用程式中新增 Gemini 功能
Updated 2024年12月6日
瞭解如何使用 Firebase 專用的 Vertex AI,在 Android 應用程式中新增簡易的 Gemini API 功能。
建構資料層
Updated 2024年12月6日
在本程式碼研究室中,您可以瞭解 Android 應用程式架構中的資料層。您會建構存放區、資料模型和資料來源,以便讀取資料並將其寫入本機資料庫和網路服務中。
Cronet 基本概念
Updated 2024年12月5日
上次更新時間: 2022 年 5 月 6 日 Cronet 是 Chromium 網路堆疊,可做為供 Android 應用程式使用的程式庫。Cronet 利用多項技術縮短延遲時間,並提高應用程式運作所需的網路要求總處理量。 Cronet 程式庫可處理數以千萬計的使用者每天使用的應用程式,例如: YouTube 、 Google 應用程式 、 Google 相簿 和 Google 地圖 - 導航和大眾運輸 。Cronet 是最常用以支援 HTTP3 的 Android 網路程式庫。 詳情請參閱
Android 分頁的基本概念
Updated 2024年12月5日
在這個程式碼研究室中,您會將分頁程式庫整合至會顯示清單的應用程式。分頁程式庫可協助您從本機儲存空間或網路載入較大的資料集並以多頁形式顯示資料。
程式設計人員的 Kotlin 新手上路課程
Updated 2024年10月8日
透過「程式設計人員的 Kotlin 新手上路」課程中,您將在 IntelliJ IDEA 中建立各種小型程式時,瞭解 Kotlin 的基本概念。 課程教材包括課程程式碼研究室,可搭配建議的家庭作業使用。 如果您按部就班完成每一堂課,就能充分體驗到本課程的價值,但這不是強制要求。視您的知識多寡而定,您或許能略過某些部分。 本課程適用於熟悉物件導向語言 (例如 Java 或 C++) 的程式設計師。如果您熟悉 C#,對於 Kotlin 的某些功能也一定不會陌生。 在第 1 課中,您會瞭解如何使用
從網際網路取得資料
Updated 2024年5月27日
瞭解如何使用社群開發的程式庫連線至 Web 服務,在 Android Kotlin Compose 應用程式中擷取及顯示資料,並學習如何處理潛在網路錯誤。
使用 Google Pay (Kotlin) 在 Android 打造快速結帳體驗
Updated 2024年5月13日
在本程式碼研究室中,您將在 Android 應用程式中建構結帳畫面,並設定 Google Pay 付款機制,讓應用程式的使用者只要輕觸按鈕,就能透過快速、便利及安全的方式支付商品款項。
將 LiveData 搭配 ViewModel 使用
Updated 2023年11月6日
在本程式碼研究室中,您將瞭解如何使用架構元件之一的 LiveData。將 ViewModel 中的應用程式資料轉換為 LiveData。此外,您還會瞭解如何觀察 LiveData 中的變化,並自動更新 UI。
載入及顯示網際網路上的圖片
Updated 2023年11月6日
在本程式碼研究室中,您將使用 Coil 程式庫在 Android Kotlin 應用程式中載入並顯示網際網路上的相片。您也將建構 RecyclerView,藉此以格狀方式顯示圖片。
在 Kotlin 中新增條件式行為
Updated 2023年11月6日
在本程式碼研究室中,您將建立 Lucky Dice Roll Kotlin 程式,這個程式的作用是檢查您擲出的數字是否為指定的幸運數字。
透過 Room 讀取及更新資料
Updated 2023年11月6日
瞭解如何使用 Room 在 Android Kotlin 應用程式中讀取及更新資料。Room 是 Android Jetpack 中的資料庫。設定資料庫時,Room 可處理很多雜務,讓您的應用程式能使用一般的函式呼叫與資料庫互動。
選用:在行動裝置上執行您的應用程式
Updated 2023年11月4日
在本程式碼研究室中,您將瞭解如何設定 Android 裝置 (例如手機或平板電腦),以及如何在裝置上執行 Android Studio 應用程式。
建立並執行你的第一個 Android 應用程式
Updated 2023年11月4日
在本程式碼研究室中,我們會說明如何使用 Android Studio 以 Kotlin 建構第一個 Android 應用程式。您會使用 Android Studio 範本來建構第一個專案。
片段和導覽元件
Updated 2023年11月4日
在本程式碼研究室中,您將瞭解片段、片段生命週期,以及 Jetpack 的導覽元件,讓您可以轉換 Word 應用程式以使用片段,並在單一活動中導入導覽功能。
Preferences DataStore
Updated 2023年11月3日
在本程式碼研究室中,我們會說明如何使用名為 Jetpack DataStore 的資料儲存解決方案,將鍵/值組合儲存在應用程式中。
將資料儲存於 ViewModel 中
Updated 2023年11月3日
在本程式碼研究室中,您將瞭解如何使用架構元件之一的 ViewModel。在設定變更期間實作 ViewModel 以保留應用程式資料。
Android Kotlin 基礎知識
Updated 2023年9月26日
Android Kotlin 基礎知識課程是由 Google Developers 訓練團隊製作。在本課程中,您將學到 Android Kotlin 程式設計概念,並且建構各種應用程式。 第 1 課會教你如何設定 Android Studio 以便使用 Kotlin,以及如何建構應用程式。首先,你會從「Hello World」開始,再進一步完成使用圖片檔和點擊處理常式的應用程式。你會瞭解 Android 專案的結構、如何在 Kotlin Android
在相機應用程式中支援可調整大小的介面
Updated 2023年3月11日
隨著 Android 12L 問世,以及各種新板型規格 (例如折疊式裝置) 和新顯示模式 (例如多視窗和多螢幕模式) 推陳出新,我們對於相機輸出內容和介面之間關係所提出的許多假設都受到了挑戰。
使用 Room 保存資料
Updated 2023年3月6日
瞭解如何在 Android Kotlin 應用程式中使用 Room。Room 是 Android Jetpack 中的持續性資料庫。Room 是 SQLite 上的抽象層。Room 提供了便利的 API,可用來設定及查詢資料庫。
Tweakr:使用 Firebase + Android 設計綠野仙蹤原型並進行遠端控制
Updated 2022年7月20日
呼叫所有原型設計人員和動畫設計人員!調整動畫中的某個值後,往往要等上幾分鐘的編譯時間才能查看變更。您是否對此感到厭倦呢?您是否想過如果能一邊測試原型設計,一邊可透過多種選項隨時進行調整,這樣該有多好?如果有一種「單行解決方案」可滿足需求,您是否會覺得十分驚喜?
Learn Android XR Fundamentals: Part 1 - Modes and Spatial Panels
33 分鐘
Updated 2025年2月14日
In this codelab, you’ll learn about the unique user experiences that are made possible by the XR form factor. Then, you’ll learn the fundamentals of how apps can be adapted to make the most of running on an Android XR headset by using the composables provided by the Jetpack Compose XR library.
(Deprecated) Build a musical game using Oboe
1 小時 6 分鐘
Updated 2024年12月11日
Learn how to build a musical game with the Oboe library.
(Deprecated) Automated Accessibility Testing using Espresso
3 分鐘
Updated 2024年12月11日
In this codelab, you’ll learn the fundamentals of accessibility testing using Espresso.
(Deprecated) Advanced Android in Kotlin 05.3: Testing Coroutines and Jetpack integrations
Updated 2024年12月11日
In this codelab, you learn how to test coroutines, ViewModel scoped coroutines, and Room, and implement end-to-end testing for your Kotlin Android app.
(Deprecated) Advanced Android in Kotlin 05.2: Introduction to Test Doubles and Dependency Injection
Updated 2024年12月11日
In this codelab you’ll learn to set up manual dependency injection, a service locator, and how to use fakes and mocks in your Android Kotlin apps. In doing so, you’ll learn how to test a repository and write fragment integration tests.
(Deprecated) Advanced Android in Kotlin 05.1: Testing Basics
Updated 2024年12月11日
Learn the basics of testing your Android Kotlin apps. In this codelab you’ll learn to run tests, write basic tests, work with AndroidX Test, as well as test ViewModel and LiveData.
(Deprecated) On Demand Modules
2 小時
Updated 2024年12月11日
With the Android App Bundle and Google Play’s Dynamic Delivery, your app can download dynamic feature modules on demand to devices running Android 5.0 (API level 21) and higher. Your app simply needs to call APIs in the Play Core Library to download and install those modules as required, and the Google Play Store pushes only the code and resources needed for that module to the device. You can also use this API to download on demand modules for your instant app.
(Deprecated) People: Conversations and Bubbles
16 分鐘
Updated 2024年12月11日
This codelab demonstrates how to show conversational notifications as Bubbles on Android 11.
(Deprecated) Direct Share to an Android app
47 分鐘
Updated 2024年12月11日
Direct Share makes sharing content quicker and easier. In this codelab, you’ll build an app that is able to display a list of contacts in the system Intent chooser dialog so you can jump directly into the app to make the sharing process seamless.
(Deprecated) Migrating your Dagger app to Hilt
34 分鐘
Updated 2024年12月10日
In this codelab, you’ll migrate an Android app that uses Dagger as the Dependency Injection library to Hilt.
(Deprecated) Learn Jetpack Navigation
1 小時 25 分鐘
Updated 2024年12月10日
Learn how to implement common navigation requirements for Android apps. Navigation Components handle fragment transactions, up/back stack, navigation UI patterns like navigation drawers, deep links and more. You’ll also explore the type safe args plugin and the Navigation Editor in Android Studio.
(Deprecated) Using Dagger in your Android app - Kotlin
1 小時 10 分鐘
Updated 2024年12月10日
In this codelab, you’ll build an Android app that uses Dagger to do Dependency Injection.
(Deprecated) Data Binding in Android
56 分鐘
Updated 2024年12月10日
In this codelab you’ll learn how to use the Data Binding library. The Data Binding Library allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatically. You’ll learn to set it all up, use layout expressions, work with observable objects, and create custom Binding Adapters to reduce boilerplate to a minimum.
(Deprecated) Learn advanced coroutines with Kotlin Flow and LiveData
57 分鐘
Updated 2024年12月10日
In this codelab, you’ll build a coroutine-based Android app that uses Architecture Components to fetch data from the network and a Room database.
(Deprecated) Using Hilt in your Android app
1 小時
Updated 2024年12月10日
In this codelab, you’ll build an Android app that uses Hilt to do Dependency Injection.
(Deprecated) Use Kotlin Coroutines in your Android App
54 分鐘
Updated 2024年12月10日
In this codelab, you’ll build a coroutine-based Android app that uses Architecture Components to fetch data from the network and a Room database.
(Deprecated) Use ConstraintLayout to design your Android views
1 小時 5 分鐘
Updated 2024年12月9日
In this codelab, you’ll learn how to use Android Studio’s Layout Editor to build your views using ConstraintLayout.
(Deprecated) Kotlin Bootcamp for programmers: Welcome to the course
Updated 2024年12月9日
Welcome to the Kotlin bootcamp for programmers training course.
(Deprecated) Android Paging Advanced codelab
1 小時 28 分鐘
Updated 2024年12月9日
In this codelab, you modify a sample app to incorporate the Paging Library, which reduces the app’s memory footprint.
(Deprecated) Kotlin Bootcamp for Programmers 1: Get started
Updated 2024年12月9日
In this codelab, you learn some of the advantages of using Kotlin, and you install the necessary tools (JDK+IDE).
(Deprecated) Create Hello-CMake with Android Studio
10 分鐘
Updated 2024年12月9日
In this codelab, you’ll learn how to use Android Studio 4.0+ C++ template
(Deprecated) Login with Biometrics on Android
30 分鐘
Updated 2024年12月9日
In this codelab you will add biometric authentication to your app as part of your login process. You will not replace your current login process – users can still log in with their account password. Instead, you will augment your login process, giving users the convenience to not have to remember their password every time they open your app. The codelab shows how to ask users to opt-in and then how to store the server generated user token behind biometric authentication.
(Deprecated) Android Room with a View - Kotlin
1 小時
Updated 2024年12月9日
In this codelab you’ll build an Android app in Kotlin that uses Android Architecture Components (RoomDatabase, Entity, DAO, AndroidViewModel, LiveData) together with Kotlin coroutines. This sample app stores a list of words in a Room database and displays it in a RecyclerView. You will implement this app using the recommended Android architecture using these components.
(Deprecated) Android Room with a View - Java
58 分鐘
Updated 2024年12月9日
In this codelab you build an app that uses Android Architecture Components (RoomDatabase, Entity, DAO, AndroidViewModel, LiveData) and implements the recommended architecture for these components. The sample app stores a list of words in a Room database and displays it in a RecyclerView.
Learn Car App Library fundamentals
1 小時 24 分鐘
Updated 2024年11月29日
In this codelab, you learn the fundamentals of the Car App Library. This library is used to build apps for Android Auto and Android Automotive OS, which can be used both while parked and driving. You learn how to reuse your implementation across both platforms and have it handle the hard stuff, like different screen configurations and input methods.
Scalable implementation of Google Play Billing in Kotlin
Updated 2024年9月9日
This codelab shows how to add billing to an existing app. You will learn how to use the Google Play Billing Library in your project in a way that hides the nitty-gritty details from the rest of your app and engineering team.
Build a handwritten digit classifier app with TensorFlow Lite
46 分鐘
Updated 2024年9月4日
In this codelab you will train a handwritten digit classifier model using TensorFlow, then convert it to TensorFlow Lite format and deploy it on an Android app.
Using Play Asset Delivery in Unity games
1 小時 25 分鐘
Updated 2024年8月21日
In this codelab, modify a sample Unity project to take advantage of Play Asset Delivery for on-demand asset downloading from Google Play.
Starting Android Accessibility
16 分鐘
Updated 2024年5月25日
In this codelab, you’ll learn the fundamentals of Android Accessibility. You’ll work through exercises to learn how to use the Android platform to build apps that can be used more easily by a wider set of people with different accessibility needs.
Receive location updates in Android 10 with Kotlin
Updated 2024年1月3日
In this codelab, you'll learn how to continue receiving location updates for Android 10, keeping best practices for the platform in mind.
Getting Started with CameraX
1 小時
Updated 2024年1月3日
This codelab introduces how to create a camera app that uses CameraX to show a viewfinder, take photos and analyze an image stream from the camera.
Install Android 11 GSI for App Testing
Updated 2024年1月3日
In this codelab, you will install Android 11 Generic System Image (GSI) to Android 9 (Pie) devices. After that, you can develop and validate your application with the new OS!
Working with Preferences DataStore
27 分鐘
Updated 2024年1月3日
In this codelab, you’ll modify a sample app to incorporate Jetpack Preferences DataStore, a new and improved data store solution and replacement for SharedPreferences.
Convertendo para Kotlin
Updated 2024年1月3日
Nesse codelab você aprenderá como converter seu código Java para Kotlin.
Integrating Android Performance Tuner into your Unity game
1 小時 12 分鐘
Updated 2023年11月15日
In this codelab, you’ll add Android Performance Tuner to a Unity game, allowing you to get performance measures reported in the Google Play Console when people play your game.
Background Work with WorkManager - Java
1 小時 30 分鐘
Updated 2023年9月21日
Android has many choices for guaranteed background work, which have various pros and cons. The WorkManager library for Android makes working in the background simple. WorkManager deals with edge cases and compatibility issues. It also can create tasks that are query-able, reusable and chain-able. WorkManager is the recommended task scheduler on Android. This codelab will teach you the ins-and-outs of WorkManager: everything from writing a simple job to more complex chained jobs with constraints.
Integrating Android Performance Tuner into your native Android game
1 小時 35 分鐘
Updated 2023年9月21日
In this codelab, you’ll add Android Performance Tuner to a native Android game, allowing you to get performance measures reported in the Google Play Console when people play your game.
Lesson 1.1 - Get started
Updated 2023年9月21日
In this codelab, you learn some of the advantages of using Kotlin, and you install the necessary tools (JDK+IDE).
Using Play Asset Delivery in native games
1 小時 15 分鐘
Updated 2023年9月21日
In this codelab, modify a C++ demo application to take advantage of Play Asset Delivery for on-demand asset downloading from Google Play.
Add Rewarded Video Ads to your Android App
35 分鐘
Updated 2023年9月21日
In this codelab, you’ll integrate rewarded video ads into a simple demo game.
Android Testing Codelab
Updated 2023年9月21日
In this codelab you’ll learn how to write tests for a real world Android application that uses modern architecture. It showcases unit, integration and end-to-end tests using JUnit4, code coverage tools, Robolectric and Espresso. You’ll also learn how to create tests for an app that uses Kotlin coroutines and Architecture Components like ViewModel, LiveData, Room, Navigation and Data Binding.
Managing Android Devices Without an App
34 分鐘
Updated 2023年9月21日
Managing Android devices has never been easier. With the Android Management API, you can build a policy and provision a device in minutes. Our quickstart guide will give you everything you need to get started, and will help you set up a device from scratch in minutes.
Working with Proto DataStore
34 分鐘
Updated 2023年9月21日
In this codelab, you’ll modify a sample app to incorporate Jetpack Proto DataStore, a new and improved data store solution and replacement for SharedPreferences.
Building a Kotlin extensions library
Updated 2023年9月21日
In this codelab, you’ll build your own Kotin extensions library for an API that was originally created in the Java programming language. You’ll learn the basics of extension functions and properties, as well as how to implement a coroutines and Flow version of a traditional, callbacks based API.
Advanced WorkManager
45 分鐘
Updated 2023年9月21日
Built on top of the “WorkManager Basics” codelab, this adds support for the new Progress API introduced in WorkManager v2.3 and shows how to customize WorkManager with a custom configuration. This codelab will also cover how to test Workers.
Optimizing your Android App for ChromeOS
1 小時
Updated 2023年9月21日
In this codelab, you’ll build an Android app that contains many of the optimizations needed for a good user experience on ChromeOS.
Building Beautiful Transitions with Material Motion for Android
Updated 2023年9月19日
Build Material's motion system into the Reply app using transitions from the Material Components for Android library, and Kotlin.
Incorporate Lifecycle-Aware Components
Updated 2023年9月19日
In this codelab, you'll learn about lifecycle-aware architecture components and how to incorporate LiveData and ViewModels into your app.
MDC-104 Android: Material Advanced Components (Java)
Updated 2023年9月19日
Improve your design and learn to use our advanced component backdrop menu in Java.
MDC-102 Android: Material Structure and Layout (Java)
Updated 2023年9月19日
Learn how to use Material for structure and layout on Android in Java.
MDC-103 Android: Material theming with Color, Motion and Type (Java)
Updated 2023年9月19日
Discover how Material Components for Android make it easy to differentiate your product and express your brand through design in Java.
MDC-103 Android: Material Theming with Color, Elevation and Type (Kotlin)
Updated 2023年9月19日
Discover how Material Components for Android make it easy to differentiate your product and express your brand through design in Kotlin.
MDC-104 Android: Material Advanced Components (Kotlin)
Updated 2023年9月19日
Improve your design and learn to use our advanced component backdrop menu in Kotlin.
MDC-101 Android: Material Components (MDC) Basics (Java)
Updated 2023年9月19日
Learn the basics of using Material Components for Android by building a simple app with core components in Java.
Recognize Flowers with TensorFlow Lite on Android
Updated 2023年9月19日
In this codelab you will take an image classifier, and run it on an Android phone using TensorFlow Lite.
MDC-102 Android: Material Structure and Layout (Kotlin)
Updated 2023年9月19日
Learn how to use Material for structure and layout on Android in Kotlin.
Controlling media through MediaSession
Updated 2023年9月19日
In this codelab, you'll expand a video sample to add support for MediaSession. This allows Android to control playback from outside your app, for instance through the Google Assistant, remote controls on TV, or on-screen controls on the lock screen and Wear OS.
Deprecated: Deeper Content Integration with the New Android TV Home Screen
Updated 2023年9月19日
This codelab introduces the new Android TV home screen. You'll learn how to add channels and programs to the Android TV launcher, and make them discoverable. Deprecated by jbax@
Raise engagement on Android TV by integrating with the Play Next row
Updated 2023年9月19日
This codelab dives deeper into the new Android TV home screen. You'll learn how to add programs to the Play Next row, the different types of programs allowed, and best practices for your app to integrate with the row.