Android 程式碼研究室
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 應用程式連結。
在 Android 應用程式中加入 Play Integrity
Updated 2024年12月23日
在這個程式碼研究室中,您需要將 Play Integrity API 加入範例應用程式。您會使用 Play Integrity API 要求完整性判定結果,藉此判斷應用程式的授權狀態和完整性,以及執行應用程式的裝置完整性狀態。
開始在 Android 上使用 Vulkan
Updated 2024年12月17日
Vulkan 是高效能的新型圖像 API,可提供低階的 GPU 存取方式,並以多種做法最佳化實作項目,但缺點是不易使用。替代的 OpenGL ES 雖較為簡單,但其建構基礎是舊版的硬體架構,因此功能和效能不如 Vulkan。OpenGL ES 目前已終止開發,其他平台也多半不再支援 OpenGL ES。Android 計劃讓 OpenGL ES 下線並改用 Vulkan,因此需要協助開發人員做好準備。
在 Wear OS 中建立第一個資訊方塊
Updated 2024年12月17日
在本程式碼研究室中,您將瞭解如何建立自己的 Wear OS 資訊方塊。您將使用 Tiles Material Components 程式庫,輕鬆建構符合 Material Design 指南的 UI,並在開發期間於 Android Studio 中預覽資訊方塊。
進階活動嵌入功能
Updated 2024年12月13日
在本程式碼研究室中,您將瞭解如何使用新推出的活動嵌入功能,提升應用程式在大螢幕上的使用體驗。這些功能包括窗格擴展、重疊式呈現、全螢幕對話方塊調暗和活動堆疊固定。
透過 Jetpack WindowManager 支援折疊式和雙螢幕裝置
Updated 2024年12月11日
瞭解如何透過 Jetpack WindowManager 程式庫,讓應用程式適應新的板型規格,例如折疊式裝置和雙螢幕裝置。
在 Jetpack Compose 中測試
Updated 2024年12月11日
在本程式碼研究室中,您將瞭解如何測試使用 Jetpack Compose 建立的使用者介面。您編寫第一個測試,同時瞭解獨立測試、偵錯測試、Semantics 樹狀結構和同步處理。
使用活動嵌入功能和 Material Design 建構清單/詳細資料版面配置
Updated 2024年12月11日
透過活動嵌入功能,以活動為依據的應用程式就能支援大螢幕的雙窗格版面配置,不必重構程式碼。您將新增一些依附元件、建立 XML 設定檔、實作初始化器,並在應用程式資訊清單中新增一些內容。或者,如果您偏好使用程式碼,可以在主要活動的 onCreate() 方法進行幾個 Jetpack API 呼叫。在本程式碼研究室中,您將使用 XML 和 API 開發方法,將以活動為依據的應用程式更新為清單/詳細資料的雙窗格版面配置。
Jetpack Compose 中的進階狀態和連帶效果
Updated 2024年12月9日
在本程式碼研究室中,您將學習 Jetpack Compose 的狀態和連帶效果進階概念。瞭解如何為複雜的有狀態可組合項建立狀態容器、建立協同程式並透過 Compose 程式碼呼叫暫停函式,以及如何觸發連帶效果來達成不同的用途。
透過 Ongoing Activity API 以全新方式與 Wear OS 使用者互動
Updated 2024年12月7日
透過 Wear 的 Ongoing Activity API,開發人員只需利用少量的程式碼,使用者即可從錶面和應用程式啟動器瞭解應用程式的執行狀態;此外,使用者只要輕觸一下,就能返回應用程式進行重要活動。
建構及測試可在車輛停妥時使用的 Android Automotive OS 應用程式
Updated 2024年12月6日
在本程式碼研究室中,您將瞭解如何建構及測試 Android Automotive OS 裝置在車輛停妥時帶來的優質體驗,內容包括如何充分運用各種車用螢幕,以及如何透過標準 Android 機制,讓使用者在車輛特有的各種情境中控制內容播放。
使用 Jetpack WindowManager 最佳化適用於摺疊式裝置的相機應用程式
Updated 2024年12月6日
這些年來,Android 裝置不斷演進,除了推出了各種尺寸的機種,外觀、螢幕和功能也更加多元。不過,從一開始,使用手機拍照就一直是最重要的用途之一。時至今日,相機功能仍是消費者購買手機時,考慮的其中一項主因。
使用 Material 3 在 Compose 中設定主題
Updated 2024年12月6日
本程式碼研究室的目標是使用新推出的 Material Design 3 和 Material You 實作方法,示範如何在 Jetpack Compose 中設定主題。
使用 Jetpack Compose 新增鍵盤、滑鼠、觸控板和觸控筆支援功能
Updated 2024年12月6日
瞭解如何使用 Compose 開發支援鍵盤和指標裝置 (例如滑鼠和觸控板) 的應用程式。
Android Sleep API 程式碼研究室
Updated 2024年12月6日
瞭解如何註冊 Android Sleep API 來取得 SleepSegmentEvents 和 SleepClassifyEvents。
Compose 中的 ViewModel 和狀態
Updated 2024年12月6日
在本程式碼研究室中,您將瞭解如何使用 ViewModel 這個架構元件,並藉由實作 ViewModel,在設定變更期間保留應用程式狀態。
在 Android 應用程式中新增 Gemini 功能
Updated 2024年12月6日
瞭解如何使用 Firebase 專用的 Vertex AI,在 Android 應用程式中新增簡易的 Gemini API 功能。
Android 基礎知識 02.2:活動生命週期和狀態
Updated 2024年12月6日
在本程式碼研究室中,您可以在 TwoActivities 應用程式中新增記錄陳述式,觀察活動生命週期的變化。您將瞭解這些變化的因應方式,以及如何在這些情況下處理使用者輸入內容。
建構資料層
Updated 2024年12月6日
在本程式碼研究室中,您可以瞭解 Android 應用程式架構中的資料層。您會建構存放區、資料模型和資料來源,以便讀取資料並將其寫入本機資料庫和網路服務中。
使用 WorkManager 處理背景工作
Updated 2024年12月6日
Android 的 WorkManager API 可讓您輕鬆在背景執行工作。WorkManager 不僅能夠建立可查詢、鏈結和重複使用的工作,也是 Android 推薦的工作排程器。本程式碼研究室將協助您全盤瞭解 WorkManager,一舉囊括簡易工作編寫和較複雜的鏈結工作說明。
Jetpack Compose 中的無障礙功能
Updated 2024年12月5日
在本程式碼研究室中,您將學習如何讓 Compose 應用程式更易於使用。瞭解如何增加觸控目標、新增內容說明、點擊標籤、自訂動作等等。
Compose for Wear OS 程式碼研究室
Updated 2024年12月5日
在這個程式碼研究室中,您將瞭解如何使用全新的 Compose for Wear OS,將 Compose 知識應用到穿戴式裝置。最後,您將會在應用程式中建立簡易與進階的穿戴式裝置專用可組合項。
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日
在這個程式碼研究室中,您會將分頁程式庫整合至會顯示清單的應用程式。分頁程式庫可協助您從本機儲存空間或網路載入較大的資料集並以多頁形式顯示資料。
Android 隱私權程式碼研究室
Updated 2024年12月4日
Android 已在過去幾個版本推出許多個別隱私權功能,我們很高興能協助您在應用程式中採用這些功能!本程式碼研究室旨在統整個別隱私權功能,並向開發人員說明應用程式如何存取使用者的私人資料,並在現有的執行應用程式中採用隱私權的最佳做法。
程式設計人員的 Kotlin 新手上路課程
Updated 2024年10月8日
透過「程式設計人員的 Kotlin 新手上路」課程中,您將在 IntelliJ IDEA 中建立各種小型程式時,瞭解 Kotlin 的基本概念。 課程教材包括課程程式碼研究室,可搭配建議的家庭作業使用。 如果您按部就班完成每一堂課,就能充分體驗到本課程的價值,但這不是強制要求。視您的知識多寡而定,您或許能略過某些部分。 本課程適用於熟悉物件導向語言 (例如 Java 或 C++) 的程式設計師。如果您熟悉 C#,對於 Kotlin 的某些功能也一定不會陌生。 在第 1 課中,您會瞭解如何使用
透過 Room 讀取及更新資料
Updated 2024年6月13日
瞭解如何在 Android Kotlin 應用程式中使用 Room 讀取及更新資料。Room 是 Android Jetpack 中的資料庫。設定資料庫時,Room 可處理很多雜務,讓您的應用程式能使用一般的函式呼叫與資料庫互動。
使用 Room 保存資料
Updated 2024年6月13日
瞭解如何在 Android Kotlin 應用程式中使用 Room。Room 是 Android Jetpack 中的持續性資料庫。Room 是 SQLite 上的抽象層,提供了便利的 API,可用來設定、調整及查詢資料庫。
運用 Material Design 設計自動調整式版面配置
Updated 2024年5月30日
瞭解如何使用 Material Design 的自訂調整式設計原則,為各種螢幕大小提供一致的使用體驗。在本程式碼研究室中,您會將行動裝置的設計擴展到平板電腦格式,並瞭解回應式格線、自動調整式組合模式以及正確的元件。
從網際網路取得資料
Updated 2024年5月27日
瞭解如何使用社群開發的程式庫連線至 Web 服務,在 Android Kotlin Compose 應用程式中擷取及顯示資料,並學習如何處理潛在網路錯誤。
使用 Jetpack Compose 進行 Material Design 主題設定
Updated 2024年5月14日
瞭解如何在應用程式中加入 Material Design 主題設定,包括顏色、形狀和字體排版。
使用 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,可用來設定及查詢資料庫。
使用 Macrobenchmark 檢查應用程式效能
Updated 2023年2月28日
在這個程式碼研究室中,您將學習如何用 Jetpack Macrobenchmark 測量應用程式啟動時間和影格時間。
Tweakr:使用 Firebase + Android 設計綠野仙蹤原型並進行遠端控制
Updated 2022年7月20日
呼叫所有原型設計人員和動畫設計人員!調整動畫中的某個值後,往往要等上幾分鐘的編譯時間才能查看變更。您是否對此感到厭倦呢?您是否想過如果能一邊測試原型設計,一邊可透過多種選項隨時進行調整,這樣該有多好?如果有一種「單行解決方案」可滿足需求,您是否會覺得十分驚喜?
使用建構變數建立不同版本的應用程式
Updated 2022年7月16日
在這個程式碼研究室中,您將使用建構變數來建立 DiceRoller 應用程式的預設版本 (「試用版」) 和進階版本 (「完整版」)。
Android Basics with Compose
Updated 2025年3月31日
学习使用 Jetpack Compose 构建 Android 应用的基础知识。Jetpack Compose 是构建 Android 应用的推荐界面工具包
学习汽车应用库基础知识
1 小時 24 分鐘
Updated 2023年9月28日
在此 Codelab 中,您将学习汽车应用库的基础知识。该库用于构建面向 Android Auto 和 Android Automotive OS 的应用,这些应用在停车和行驶时均可使用。您将学习如何在这两个平台之间重用您的实现,并处理一些困难的问题,比如不同的屏幕配置和输入法。
使用 WorkManager 处理后台工作 - Java
Updated 2022年7月29日
WorkManager 是推荐使用的 Android 任务调度程序。本 Codelab 将向您介绍有关 WorkManager 的全面信息:从编写简单的作业,到更为复杂的具有约束条件的链式作业。
使用 Kotlin 03.2 进行高级 Android 开发:使用 MotionLayout 的动画效果
Updated 2022年7月29日
在此 Codelab 中,您将使用 MotionLayout 构建具有动态动画效果的 Android Kotlin 应用。
带 View 的 Android Room - Kotlin
Updated 2022年7月29日
在本 Codelab 中,您将使用 Android 架构组件(RoomDatabase、Entity、DAO、AndroidViewModel、LiveData)和 Kotlin 协程在 Kotlin 中构建 Android 应用。该示例应用可将字词列表存储在 Room 数据库中,并在 RecyclerView 中显示该列表。您将使用推荐的 Android 架构及以下组件实现此应用。
安装 Android 11 GSI 以进行应用测试
Updated 2022年7月29日
在此 Codelab 中,您会在 Android 9 (Pie) 设备上安装 Android 11 通用系统映像 (GSI)。装好后,您就可以使用新操作系统开发和验证应用了!
在 Android 上使用 TensorFlow Lite 识别花卉(Beta 版)
Updated 2022年7月29日
在此 Codelab 中,您将提取一个图像分类器,然后使用 TensorFlow Lite 在 Android 手机上运行它。
借助适用于 Android 的 Material 运动效果构建精美的过渡
Updated 2022年7月29日
使用适用于 Android 的 Material 组件库中的过渡和 Kotlin 将 Material 运动效果系统构建到 Reply 应用中。
构建 Kotlin 扩展库
Updated 2022年7月29日
在本 Codelab 中,您将为一个 API 构建自己的 Kotin 扩展库,该 API 最初是使用 Java 编程语言开发的。您将了解扩展函数及属性方面的基本知识,以及如何实现基于回调的传统 API 的协程版本和流版本。
使用 Kotlin 在 Android 10 中接收位置信息更新
Updated 2022年7月29日
在此 Codelab 中,您将学习如何针对 Android 10 继续接收位置信息更新,并牢记平台的相关最佳做法。
内容与 Android TV 主屏幕频道集成 (Kotlin)
Updated 2022年7月29日
此 Codelab 介绍 Android TV 主屏幕功能。您将学习如何在 Android TV 主屏幕上添加频道和节目,并使其可以被用户发现。
通过 MediaSession 控制媒体
Updated 2022年7月29日
在本 Codelab 中,您将扩展示例视频,以添加对 MediaSession 的支持。这样 Android 可以从您的应用外控制播放,例如通过 Google 助理、适用于 Android TV 的遥控器或锁定屏幕和 Wear OS 上的屏幕控件。
与“接下来播放”行集成,在 Android TV 上提升互动度
Updated 2022年7月29日
此 Codelab 更深入地介绍了新的 Android TV 主屏幕。您将学习如何将节目添加到“接下来播放”行、允许的不同类型的节目,以及关于如何将应用与“接下来播放”行集成的最佳做法。
MDC-103 Android:通过颜色、高度和类型设置 Material 主题 (Kotlin)
Updated 2022年7月29日
了解 Material Components for Android 如何助力您轻松地通过 Kotlin 语言设计表述自己的品牌并使您的商品脱颖而出。
Jetpack 导航
Updated 2022年7月29日
在本 Codelab 中,您将学习如何为 Android 应用实现常见的导航要求。导航组件可以处理 fragment 事务、向上/返回堆栈、导航界面模式(如抽屉式导航栏、深层链接等)。您还可以在 Android Studio 中探索新型 safe args 插件和导航编辑器。
使用 Kotlin 进行高级 Android 开发 04.1:Android Google 地图
Updated 2022年7月29日
了解如何向 Android Kotlin 应用添加 Google 地图,并为 Google 地图设置样式。
学习采用 Kotlin Flow 和 LiveData 的高级协程
Updated 2022年7月29日
在此 Codelab 中,您将构建一个基于协程的 Android 应用,该应用使用架构组件从网络和 Room 数据库中获取数据。
针对 Chrome 操作系统优化 Android 应用
Updated 2022年7月29日
在此 Codelab 中,您将构建一个 Android 应用,其中包含要在 Chrome 操作系统上实现良好用户体验所需的诸多优化。
Android Paging Advanced Codelab
Updated 2022年4月19日
在此 Codelab 中,您将修改一个示例应用,以向其中添加 Paging 库,通过此库减少应用的内存占用。
使用 WorkManager 在后台处理工作 - Kotlin
Updated 2022年4月16日
Android 为保证执行后台工作提供了许多选择,这些选择既有很多优点,也有很多缺点。面向 Android 的 WorkManager API 可简化后台工作。WorkManager 解决了极端情况和兼容性问题。它还可以创建可查询、可重用和可链接的任务。WorkManager 是 Android 平台上推荐的任务调度程序。本 Codelab 将向您介绍 WorkManager 的详细信息:从编写简单的作业,到更为复杂的具有约束条件的链式作业。
WorkManager 进阶知识
Updated 2022年4月13日
本 Codelab 在“WorkManager 基础知识”之上增加了有关在 WorkManager v2.3 中引入的全新 Progress API 的内容,还介绍了如何使用自定义配置对 WorkManager 进行自定义。本 Codelab 还将介绍如何测试工作器。
使用 ExoPlayer 流式传输媒体内容
Updated 2022年4月11日
在此 Codelab 中,您将构建一个媒体播放器,以使用在 Android 版 YouTube 应用中运行的开源媒体播放器 ExoPlayer 呈现音频和自适应视频串流。此 Codelab 将使用并自定义该库中包含的界面组件,并将演示如何在 activity 生命周期中实例化、设置、重用以及正确集成 SimpleExoPlayer 实例。
使用 Proto DataStore
Updated 2022年4月8日
在此 Codelab 中,您将修改一个示例应用,以向其中添加 Jetpack Proto DataStore。Jetpack Proto DataStore 是一个经过改进的新数据存储解决方案,旨在取代 SharedPreferences。
Android 无障碍功能入门
Updated 2022年4月7日
在本 Codelab 中,您将学习有关 Android 无障碍功能的基础知识。您将通过练习来学习如何使用 Android 平台构建无障碍功能出色的应用,让更多具有不同无障碍功能需求的用户能够更轻松地使用您的应用。
使用 Preferences DataStore
Updated 2022年4月4日
在此 Codelab 中,您将修改一个示例应用,以向其中添加 Jetpack Proto DataStore。Jetpack Proto DataStore 是一个经过改进的新数据存储解决方案,旨在取代 SharedPreferences。
Android Kotlin 基础知识:03.2 定义导航路径
Updated 2021年10月19日
学习如何使用 Android Studio 的 Navigation Editor 定义应用中的导航流(导航路径)。您将了解如何实现向上按钮、添加选项菜单,以及为应用创建抽屉式导航栏。
在 Android 应用中使用 Kotlin 协程
Updated 2021年10月15日
在此 Codelab 中,您将构建一个基于协程的 Android 应用,该应用使用架构组件从网络和 Room 数据库中获取数据。
Android Kotlin 基础知识:创建 Room 数据库
Updated 2021年10月13日
了解如何在 Android Kotlin 应用中使用 Room。Room 是一个数据库,是 Android Jetpack 的一部分。Room 负责处理数据库设置和配置方面的许多繁琐工作,并让应用可以使用普通的函数调用与数据库进行交互。
Android Kotlin 基础知识:03.3 启动外部 activity
Updated 2021年10月13日
在此 Codelab 中,您将学习如何使用 Safe Args 把参数传递到 fragment,以便更轻松地调试应用;还会学习如何在应用中调用外部 activity。
Android Kotlin 基础知识:07.2 将 DiffUtil 和数据绑定与 RecyclerView 结合使用
Updated 2021年10月11日
学习提高 RecyclerView 效率的技巧,以处理大型列表。此外,您还能学到一些其他技巧,使您的代码更易于维护和扩展,以在您的 Android Kotlin 应用中处理复杂的列表和网格。
Create a widget with Glance
Updated 2025年3月28日
In this codelab, you learn how to add Glance widgets to the SociaLite app.
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) 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) 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) 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) 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 - 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.
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.
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.
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.
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.
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-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.
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@