Android Codelab
Room によるデータの読み取りと更新
Updated 2025年4月14日
Android Kotlin アプリで Room を使用してデータの読み取りと更新を行う方法について学びます。Room は、Android Jetpack の一部であるデータベース ライブラリです。Room は、データベースのセットアップと設定に関する多数の処理を行い、通常の関数呼び出しを使用してアプリでデータベースを操作できるようにします。
インタラクティブな Dice Roller アプリを作成する
Updated 2025年4月14日
ユーザーがサイコロを振ってその結果を表示できるインタラクティブなアプリ「Dice Roller」の作成方法を学習します。
自動車向けアプリ ライブラリの基礎を学ぶ
1時間 24分
Updated 2025年4月14日
この Codelab では、自動車向けアプリ ライブラリの基礎について説明します。このライブラリは、Android Auto と Android Automotive OS 用の、駐車中と運転中のどちらでも使用できるアプリの作成に使います。実装を両方のプラットフォームで再利用する方法と、さまざまな画面設定や入力方法への対応など、難しい問題に対処する方法を学びます。
Compose をビューベースのアプリに追加する
Updated 2025年4月14日
この Codelab では、View システムの画面の一部を Jetpack Compose に移行する方法を学びます。
(非推奨)Tweakr: Wizard of Oz 型のプロトタイピング、および Firebase と Android でのリモート コントロール
28分
Updated 2025年4月14日
すべてのプロトタイプ作成者、モーション デザイナーに朗報!アニメーションで 1 つの値を微調整してから、コンパイルして変更を確認するまでに数分かかることにうんざりしていませんか?プロトタイプを誰かに渡した後、各種オプションをオンザフライで調整して、その人にさまざまなプロトタイプを試してもらいたいと思ったことはありませんか?「1 行のソリューション」という言葉にワクワクしませんか?
Cronet の基本
Updated 2025年4月14日
最終更新日: 2022 年 5 月 6 日 Cronet は Android アプリがライブラリとして利用できる Chromium ネットワーク スタックです。Cronet は、アプリの動作に必要なネットワーク リクエストのレイテンシを抑え、スループットを向上させる複数のテクノロジーを利用します。 Cronet Library は、 YouTube 、 Google アプリ 、 Google フォト 、 マップ - ナビ&乗換
(非推奨)Android のページングの基本
25分
Updated 2025年4月14日
この Codelab では、リストを表示するアプリにページング ライブラリを統合します。ページング ライブラリを使用すれば、大規模なデータセットからデータのページをローカル ストレージやネットワーク経由で読み込んで表示できます。
Android Automotive OS 用の駐車時向けアプリを作成してテストする
1時間 11分
Updated 2025年4月14日
この Codelab では、Android Automotive OS デバイス向けに優れた駐車時エクスペリエンスを構築してテストする方法について学習します。自動車に搭載されているさまざまな画面を最大限に活用する方法、自動車特有のさまざまな状況において、ユーザーが標準の Android メカニズムを使用してコンテンツの再生を操作できるようにする方法を学びます。
ジェネリック、オブジェクト、拡張機能
Updated 2025年4月14日
Compose コードで使用するジェネリクス、列挙型クラス、データクラス、オブジェクト、スコープ関数など、Kotlin のコンセプトの概要を学びます。
(非推奨)データレイヤーの構築
1時間 3分
Updated 2025年4月14日
この Codelab では、Android アプリ アーキテクチャのデータレイヤーについて学びます。リポジトリ、データモデル、データソースを構築し、ローカル データベースとネットワーク サービスにデータを読み書きします。
Android アプリリンクを構成、実装、検証する
35分
Updated 2025年4月14日
この Codelab では、レストランをリスト表示する Android アプリを作成します。この作業を通じて、Android アプリリンクを設計、構成、検証する方法を学びます。
Android XR の基礎を学ぶ: パート 1 - モードと空間パネル
33分
Updated 2025年4月14日
この Codelab では、XR フォーム ファクタによって使えるようになる、独自のユーザー エクスペリエンスについて学びます。また、Jetpack Compose XR ライブラリで提供されるコンポーザブルを利用して、アプリを最大限に生かしながら Android XR ヘッドセットで動作させる方法の基礎についても学びます。
Jetpack Compose の Navigation
1時間 39分
Updated 2025年4月14日
この Codelab では、Compose の Navigation の基本について学びます。
ベースライン プロファイルを使用してアプリのパフォーマンスを改善する
48分
Updated 2025年4月14日
この Codelab では、ベースライン プロファイルを使用して、アプリの起動時間とフレーム時間を改善する方法を説明します。
Compose を使用してビューベースの Android アプリにアダプティブ レイアウトを追加する
1時間 1分
Updated 2025年4月14日
Jetpack Compose を使用してビューベースの Android アプリにアダプティブ レイアウトを追加する方法を学習します。
Jetpack Compose の状態
50分
Updated 2025年4月14日
この Codelab では、状態を管理することでリッチでインタラクティブな Compose アプリケーションを構築する方法を学びます。
SQL を使用してデータベースに対する読み取りと書き込みを行う
Updated 2025年4月14日
リレーショナル データベースの基本コンセプトと、SQL を使用したデータベースの読み取りと操作について学習します。
インターネットから画像を読み込んで表示する
Updated 2025年4月14日
この Codelab では、Coil ライブラリを使用して、Android Compose アプリでインターネットから写真を読み込んで表示します。
(非推奨)Wear OS でウォッチフェイスの追加機能にデータを公開する
45分
Updated 2025年4月14日
この Codelab では、プラットフォームのベスト プラクティスを念頭に置きながら、ウォッチフェイスの追加機能にデータを公開する方法を学びます。
適応性機能をネイティブ ゲームに統合する
1時間
Updated 2025年4月14日
この Codelab では、まずシンプルな 3D 物理シミュレーション ゲームをセットアップし、それに適応性機能を統合します。統合するもの:
Jetpack Compose でのテスト
38分
Updated 2025年4月14日
この Codelab では、Jetpack Compose で作成された UI のテストについて学びます。単独でのテスト、デバッグテスト、セマンティクス ツリー、同期について学びながら、最初のテストを作成します。
ダイナミック ナビゲーションを使用してアダプティブ アプリを作成する
Updated 2025年4月14日
アダプティブ ナビゲーション UI パターンを使用してアプリを大画面に適応させる方法について学びます。
Compose の基本レイアウト
54分
Updated 2025年4月14日
この Codelab では、Compose に標準搭載されているコンポーザブルと修飾子を使用して、実際のデザインを実装する方法を学びます。
Jetpack WindowManager を使用して折りたたみ式デバイスのカメラアプリを最適化する
34分
Updated 2025年4月14日
Android デバイスは長年にわたり進化を続け、さまざまなサイズ、形状、ディスプレイ、機能を搭載したデバイスが登場しています。当初からスマートフォンで写真を撮影できる機能は重要でした。現在でも、消費者がスマートフォンを購入する際に重視する項目の一つにカメラ機能が入っています。
(非推奨)Android Sleep API の Codelab
30分
Updated 2025年4月14日
Android Sleep API に登録して、SleepSegmentEvents と SleepClassifyEvents を取得する方法を学びます。
Jetpack Compose を使用して、キーボード、マウス、トラックパッド、タッチペンのサポートを追加する
1時間 9分
Updated 2025年4月14日
キーボードとポインティング デバイス(マウスやトラックパッドなど)をサポートするアプリを、Compose で開発する方法について説明します。
Android アプリに Gemini の機能を追加する
Updated 2025年4月7日
Vertex AI for Firebase を使用して、簡単な Gemini API 機能を Android アプリに追加する方法を学習します。
Compose での ViewModel と状態
Updated 2025年4月4日
この Codelab では、アーキテクチャ コンポーネントのひとつである ViewModel の使用方法を学びます。ViewModel を実装して、構成変更時にアプリの状態が保持されるようにします。
Jetpack Compose のユーザー補助
39分
Updated 2025年4月4日
この Codelab では、Compose アプリのユーザー補助を改善する方法を学びます。タップ ターゲットを大きくする方法や、内容説明、クリックラベル、カスタム操作を追加する方法などをご確認ください。
Room を使用してデータを永続化する
Updated 2025年4月4日
Android Kotlin アプリで Room を使用する方法について学びます。Room は、Android Jetpack の一部である永続データベース ライブラリです。Room は SQLite を対象とした抽象化レイヤです。Room には、データベースのセットアップ、設定、クエリを行うための便利な API が用意されています。
Ongoing Activity API を使用して、新しい方法で Wear OS ユーザーにアピールする
30分
Updated 2025年4月4日
Wear の Ongoing Activity API を使用すると、デベロッパーは、最小限のコードでアプリの利便性を高めることができます。ユーザーは、ウォッチフェイスやアプリ ランチャーから簡単なタップ操作でアプリに戻って重要なアクティビティを表示できるようになります。
マテリアル 3 を使用した Compose でのテーマ設定
31分
Updated 2025年4月4日
この Codelab の目的は、新しいマテリアル デザイン 3 と Material You の実装を使用した Jetpack Compose でのテーマ設定のデモを行うことです。
Android アプリでのタッチペン サポートの強化
1時間 23分
Updated 2025年4月4日
Android アプリで最新のタッチペン エクスペリエンスを実現する高度な手法の実装方法を学びます。
Android TV の映画 / テレビ エピソード用 Watch Next のエンゲージメントを向上させる
1時間 27分
Updated 2025年4月4日
この Codelab では、テレビ映画 / エピソード用 Watch Next を作成するためのベスト プラクティスについて学びます。
Android での Vulkan のスタートガイド
59分
Updated 2025年4月4日
Vulkan はパフォーマンスに優れた最新のグラフィック API です。GPU への低レベルのアクセスが可能で、さまざまな手段で実装を最適化しますが、簡単に使用できるものではありません。代わりに使用できる OpenGL ES は、よりシンプルなものですが、レガシー ハードウェアのアーキテクチャに基づいており、機能とパフォーマンスの面で劣ります。OpenGL ES は他のほとんどのプラットフォームでは非推奨となっており、もう開発は行われていません。Android では、OpenGL ES を非推奨にして Vulkan に移行する予定です。デベロッパーはこの移行に備える必要があります。
Android アプリに Play Integrity を追加する
1時間 18分
Updated 2025年4月4日
この Codelab では、Play Integrity API をサンプルアプリに追加します。Play Integrity API を使用して完全性判定の結果をリクエストします。これにより、アプリのライセンス ステータスと完全性、アプリが実行されるデバイスの完全性ステータスを判定できます。
Compose で画面間を移動する
Updated 2025年4月4日
Cupcake アプリに Navigation コンポーネントを追加してアプリのフローを整理し、異なる画面間の移動とデータの受け渡しを行います。
(非推奨)仕事用プロファイルで動作するアプリを作成する
30分
Updated 2025年4月4日
この Codelab では、仕事用プロファイルを使って管理対象デバイスで動作したときのユーザー エクスペリエンスが高まるようにアプリを変更します。
Jetpack Compose の高度な状態と副作用
41分
Updated 2025年4月4日
この Codelab では、Jetpack Compose の状態と副作用に関する高度なコンセプトについて学習します。複雑なステートフル コンポーザブルの状態ホルダーを作成する方法、コルーチンを作成して Compose コードから suspend 関数を呼び出す方法、さまざまなユースケースを実現するために副作用をトリガーする方法をご確認ください。
マテリアル デザインを使ったアダプティブ レイアウトのデザイン
4分
Updated 2025年4月4日
マテリアル デザインのアダプティブ デザインの原則を使用して、画面サイズに一貫性を持たせる方法を学びます。この Codelab では、モバイル デザインをタブレット形式にし、レスポンシブ グリッド、アダプティブ コンポジション パターン、正しいコンポーネントについて学びます。
Android プライバシー Codelab
Updated 2025年4月4日
Android は過去いくつかのリリースで、個別のプライバシー機能を多数リリースしてきました。皆さまのアプリで、これらの機能をぜひ採用していただければと思います。この Codelab では、個々のプライバシー機能の連携について解説し、デベロッパーのアプリから非公開のユーザーデータへのアクセスについて確認する方法と、実行中の既存アプリにプライバシーに関するベスト プラクティスを導入する方法をお見せします。
Jetpack Compose でのパフォーマンスに関する実践的な問題の解決
50分
Updated 2025年4月4日
システム トレースを分析し、遅れの原因として一般的なものを修正して、Compose アプリを高速に実行できるようにします。
Jetpack Compose への移行
51分
Updated 2025年4月3日
この Codelab では、View システムの画面の一部を Jetpack Compose に移行する方法を学びます。
Jetpack WindowManager による折りたたみ式デバイスとデュアル スクリーン デバイスのサポート
1時間
Updated 2025年4月1日
Jetpack WindowManager ライブラリを使用して、折りたたみ式デバイスやデュアル スクリーン デバイスなどの新しいフォーム ファクタにアプリを対応させる方法を学習します。
Android の基礎 02.2: アクティビティのライフサイクルと状態
Updated 2025年4月1日
この Codelab では、TwoActivities アプリにロギング ステートメントを追加し、アクティビティのライフサイクルの変化を確認します。これらの変更と連動して、そのような条件下でユーザー入力を処理する方法を探ります。
WorkManager によるバックグラウンド処理
Updated 2025年4月1日
Android 用の WorkManager API を使用すると、バックグラウンド処理の実行が簡単になります。WorkManager は、クエリ可能、再利用可能、チェーン化可能なタスクを作成できます。Android の推奨タスク スケジューラでもあります。この Codelab では、簡単なジョブの作成から、より複雑なチェーン化されたジョブの作成まで、WorkManager の使い方を詳しく説明します。
マテリアル デザイン 3 による手軽でパーソナライズされたテーマとブランドの作成
Updated 2025年4月1日
マテリアル 3 を使った手軽でパーソナライズされたテーマとブランドの作り方を学びます。
(非推奨)ビルド バリアントを使用してさまざまなバージョンのアプリを作成する
35分
Updated 2025年4月1日
この Codelab では、ビルド バリアントを使用して、DiceRoller アプリのデフォルト版(デモ版)とプレミアム版(完全版)を作成します。
アクティビティの埋め込みとマテリアル デザインを使用してリストと詳細レイアウトを作成する
1時間 22分
Updated 2025年4月1日
アクティビティ ベースのアプリでアクティビティの埋め込みを使用すると、コードのリファクタリングなしで、大画面での 2 ペイン レイアウトに対応できます。依存関係の追加、XML 構成ファイルの作成、イニシャライザの実装を行い、アプリ マニフェストに何点か変更を加えます。コードを編集する場合は、メイン アクティビティの onCreate() メソッドからいくつかの Jetpack API 呼び出しを実行します。この Codelab では、XML と API の両方の開発手法でアクティビティ ベースのアプリを更新し、リストと詳細の 2 ペイン レイアウトに対応します。
高度なアクティビティの埋め込み
1時間 7分
Updated 2025年4月1日
この Codelab では、アクティビティの埋め込みに新しく追加された機能を使用して、アプリの大画面でのエクスペリエンスを改善する方法を学びます。これらの機能には、ペインの拡大、オーバーレイ プレゼンテーション、全画面ダイアログを暗くする機能、アクティビティ スタックの固定などがあります。
Wear OS で初めてのタイルを作成する
47分
Updated 2025年4月1日
この Codelab では、Wear OS 向けに独自のタイルを作成する方法を学びます。マテリアル デザイン ガイドラインに準拠した UI を簡単に作成できるライブラリである Tiles Material コンポーネントを使用し、Android Studio でタイルをプレビューしながら開発します。
Macrobenchmark を使用してアプリのパフォーマンスを調査する
48分
Updated 2025年4月1日
この Codelab では、Jetpack Macrobenchmark を使用してアプリの起動時間とフレーム時間を測定する方法を学習します。
Wear OS 向け Compose の Codelab
57分
Updated 2025年4月1日
この Codelab では、新しい Wear OS 向け Compose を使用して Compose の知識をウェアラブルに転用する方法を学びます。Codelab が終了するまでに、手首用アプリでシンプルなコンポーザブルと高度なコンポーザブルの両方の作成を完了します。
インターネットからデータを取得する
Updated 2025年4月1日
コミュニティで開発されたライブラリを使用して、Android Kotlin Compose アプリでウェブサービスに接続し、データを取得して表示する方法を学習します。また、発生する可能性があるネットワーク エラーを処理する方法も学習します。
カメラアプリでサイズ変更可能なサーフェスをサポートする
38分
Updated 2025年4月1日
Android 12L の登場、新しいフォーム ファクタ(折りたたみ式デバイスなど)、新しい表示モード(マルチウィンドウやマルチディスプレイなど)の出現により、カメラ出力とサーフェスとの関係に関する多くの前提が課題となっていました。
初めてのヘルスコネクト統合アプリ
1時間 30分
Updated 2025年4月1日
この Codelab では、ヘルスコネクトに対する読み取りと書き込みをサポートする健康&フィットネス アプリを作成します。
演習: スーパーヒーローのアプリを作成する
Updated 2025年4月1日
マテリアル デザイン、リストの作成、シンプルなアニメーションというコンセプトに基づいて、スーパーヒーローのリストを作成します。
ドラッグ&ドロップの Codelab
55分
Updated 2025年4月1日
ビューのドラッグ&ドロップを有効にする方法と、アプリ内とアプリ間で DragHelper と DropHelper を使用する方法を学習します。
Android Basics with Compose
Updated 2025年3月31日
Android アプリの作成に推奨される UI ツールキットの Jetpack Compose を使用して Android アプリを作成するための基礎を学びます。
ML Kit と CameraX を使用した言語の認識、識別、テキストの翻訳: Android
Updated 2025年2月6日
この Codelab では、ML Kit を使用して Android アプリを作成します。このアプリでは、オンデバイス ML を使用して、59 の言語間でテキストを認識、識別、翻訳します。また、CameraX ライブラリを統合して、リアルタイムのカメラフィードからこれらのタスクを実行する方法についても学習します。
Activity Recognition Transition API の Codelab
31分
Updated 2025年2月6日
Activity Recognition Transition API を使用して、アプリに強力なコンテキスト機能を構築する方法を学びます。
Android ネットワーク セキュリティ構成の Codelab
Updated 2024年12月4日
この Codelab では、Android のネットワーク セキュリティ構成について確認し、安全なネットワーク通信を確立する際のよくある問題について見ていきます。
Google Pay を使って、Android でスピーディーな購入手続き体験を構築する(Kotlin)
Updated 2024年5月4日
この Codelab では、Android アプリに購入手続き画面を構築し、Google Pay を実装する方法を学びます。これにより、アプリのユーザーは、ボタンをタップするだけで、迅速、便利、安全な方法で商品の代金を支払うことができます。
ExoPlayer を使用したメディア ストリーミング
Updated 2024年2月23日
この Codelab では、Android YouTube アプリで動作するオープンソースのメディア プレーヤーである ExoPlayer を使用して、音声ストリームとアダプティブ動画ストリームをレンダリングするメディア プレーヤーを作成します。この Codelab では、ライブラリに含まれている UI コンポーネントを使用およびカスタマイズします。また、ExoPlayer をインスタンス化し、そのインスタンスを設定、再利用し、アクティビティのライフサイクルに適切に統合する方法を示します。
初めての Android アプリを作成して実行する
Updated 2024年2月23日
この Codelab では、Android Studio を使用して Kotlin で初めての Android アプリを作成する方法について説明します。Android Studio テンプレートを使用して最初のプロジェクトを作成します。
Android Studio のダウンロードとインストール
Updated 2024年2月23日
この Codelab では、Android Studio デベロッパー ツールをダウンロードしてインストールします。
波形を作る: パート 1 - シンセサイザーを作成する
Updated 2024年2月23日
Android O の AAudio API を使用して、低レイテンシのタップ操作式シンセサイザー アプリを作成します。
誕生日カードアプリを作成する
Updated 2024年2月23日
この Codelab では、Android Studio の Layout Editor を使用してテキストを表示する Android アプリを作成します。
ジェスチャー ナビゲーションと狭額縁エクスペリエンス
Updated 2024年2月23日
この Codelab では、既存のアプリを修正して、アプリ コントロールがジェスチャー ナビゲーションで動作するようにします。また、完全な狭額縁ディスプレイ エクスペリエンスを実現します。
Room とフローの概要
Updated 2024年2月23日
リレーショナル データベースの基礎を学び、Android Studio の Database Inspector を使って SQL クエリの実行を練習します。
省略可: モバイル デバイスでアプリを実行する
Updated 2024年2月23日
この Codelab では、スマートフォンやタブレットなどの Android デバイスをセットアップし、そのデバイスで Android Studio アプリを実行する方法について説明します。
Android アプリを Chrome OS 向けに最適化する
Updated 2024年2月23日
この Codelab では、Chrome OS のユーザー エクスペリエンスを向上させるために必要な多くの最適化が組み込まれた Android アプリを作成します。
Room によるデータの読み取りと更新
Updated 2024年2月23日
Android Kotlin アプリで Room を使用してデータの読み取りと更新を行う方法について学びます。Room は、Android Jetpack の一部であるデータベース ライブラリです。Room は、データベースのセットアップと設定に関する多数の処理を行い、通常の関数呼び出しを使用してアプリでデータベースを操作できるようにします。
Kotlin 拡張機能ライブラリの作成
Updated 2024年2月23日
この Codelab では、Java プログラミング言語で作成された API を対象に、独自の Kotin 拡張機能ライブラリを作成します。拡張関数とプロパティの基礎、従来のコールバック ベースの API のコルーチンと Flow バージョンを実装する方法について説明します。
Dice Roller アプリに画像を追加する
Updated 2024年2月23日
この Codelab では、Dice Roller アプリに画像を追加して、ユーザー エクスペリエンスを向上させます。
バックグラウンド処理と WorkManager - Java
Updated 2024年2月23日
WorkManager は、エッジケースと互換性の問題に対応しています。また、クエリ可能、再利用可能、チェーン化可能なタスクを作成することもできます。Android の推奨タスク スケジューラでもあります。この Codelab では、簡単なジョブの作成から、より複雑なチェーン化された制約付きジョブの作成まで、WorkManager の使い方を詳しく説明します。
Preferences DataStore
Updated 2024年2月23日
この Codelab では、Jetpack DataStore というデータ ストレージ ソリューションを使用して、アプリに Key-Value ペアを保存する方法を学びます。
Dagger アプリの Hilt への移行
Updated 2024年2月23日
この Codelab では、Dagger を依存関係注入ライブラリとして使用する Android アプリを Hilt に移行します。
ViewModel にデータを保存する
Updated 2024年2月23日
この Codelab では、アーキテクチャ コンポーネントのひとつである ViewModel の使用方法を学びます。ViewModel を実装すると、構成変更時もアプリデータを維持できるようになります。
Kotlin Flow と LiveData を使用した高度なコルーチンの学習
Updated 2024年2月23日
この Codelab では、アーキテクチャ コンポーネントを使用してネットワークと Room データベースからデータを取得するコルーチンベースの Android アプリを作成します。
Preferences DataStore を使用する
Updated 2024年2月23日
この Codelab では、サンプルアプリを変更して、Jetpack Preferences DataStore を組み込みます。これは、SharedPreferences に代わるものとして改善された新しいデータストア ソリューションです。
ViewModel で LiveData を使用する
Updated 2024年2月23日
この Codelab では、アーキテクチャ コンポーネントのひとつである LiveData の使用方法を学びます。ViewModel のアプリデータを LiveData に変換します。また、LiveData の変更を監視して、UI を自動的に更新する方法についても学習します。
Kotlin で条件付き動作を追加する
Updated 2024年2月23日
この Codelab では、サイコロの出目が特定のラッキー ナンバーと同じかどうかをチェックする、Lucky Diice Roll Kotlin プログラムを作成します。
Android のユーザー補助機能の使用を開始する
Updated 2024年2月23日
この Codelab では、Android のユーザー補助の基礎を学びます。Android プラットフォームを使用して、さまざまなユーザー補助を必要とする複数のユーザーが、より簡単に使用できるアプリを作成する方法を練習します。
MediaSession を介したメディアの制御
Updated 2024年2月23日
この Codelab では、動画サンプルを拡張して MediaSession のサポートを追加します。これにより、Google アシスタント、テレビのリモコン、ロック画面や Wear OS 画面上のコントロールなど、アプリ外からの再生を Android で制御できます。
Android Room とビュー - Kotlin
Updated 2024年2月23日
この Codelab では、Android アーキテクチャ コンポーネント(RoomDatabase、エンティティ、DAO、AndroidViewModel、LiveData)と Kotlin コルーチンを使用する Android アプリを Kotlin で作成します。このサンプルアプリは、単語のリストを Room データベースに保存し、RecyclerView に表示するものです。これを、上記のコンポーネントを使用した推奨 Android アーキテクチャを使って実装します。
Proto DataStore を使用する
Updated 2024年2月23日
この Codelab では、サンプルアプリを変更して、Jetpack Proto DataStore を組み込みます。これは、SharedPreferences に代わるものとして改善された新しいデータストア ソリューションです。
Jetpack Compose のテーマ設定
Updated 2024年2月23日
この Codelab では、アプリのテーマを作成する方法、個々のコンポーネントのスタイルを設定する方法、ライトモードやダークモードをサポートする方法を学びます。
SQL の基本
Updated 2024年2月23日
リレーショナル データベースの基礎を学び、Android Studio の Database Inspector を使って SQL クエリの実行を練習します。
高度な WorkManager
Updated 2024年2月23日
「WorkManager の基礎」の Codelab に基づいて作成されており、WorkManager v2.3 で導入された新しい Progress API のサポートが追加されています。また、カスタム構成を使用して WorkManager をカスタマイズする方法も紹介しています。この Codelab では、ワーカーのテスト方法についても説明します。
Android ページングの高度な Codelab
Updated 2024年2月23日
この Codelab では、サンプルアプリを変更して Paging ライブラリを組み込むことで、アプリのメモリ フットプリントを削減します。
CameraX のスタートガイド
Updated 2024年2月23日
この Codelab では、CameraX を使用してビューファインダーの表示、写真の撮影、カメラからの画像ストリームの分析を行うカメラアプリを作成する方法を学習します。
フラグメント間の共有 ViewModel
Updated 2024年2月23日
さらに高度なアプリのサンプルで Jetpack Navigation コンポーネントを使用して、アクティビティの複数のフラグメント間で ViewModel を共有するメリットについて説明します。
Jetpack Navigation
Updated 2024年2月23日
この Codelab では、Android アプリに一般的なナビゲーション要件を実装する方法を学びます。Navigation コンポーネントは、フラグメント トランザクション、アップスタックとバックスタック、ナビゲーション ドロワーなどのナビゲーション UI パターン、ディープリンクなどを処理します。また、新しいタイプセーフな Safe Args プラグインと Android Studio の Navigation Editor についても学びます。
Room を使用してデータを永続化する
Updated 2024年2月23日
Android Kotlin アプリで Room を使用する方法について学びます。Room は、Android Jetpack の一部である永続データベース ライブラリです。Room は SQLite を対象とした抽象化レイヤです。Room には、データベースのセットアップ、設定、クエリを行うための便利な API が用意されています。
カードを使用して画像の一覧を表示する
Updated 2024年2月23日
この Codelab では、前の Codelab で作成した Affirmations アプリのユーザー インターフェースを改良します。
WorkManager を使用したバックグラウンド処理 - Kotlin
Updated 2024年2月23日
Android には、バックグラウンド処理を確実に実行するための方法が多数用意されており、それぞれに長所、短所があります。Android 用の WorkManager API を使用すると、バックグラウンド処理の実行が簡単になります。WorkManager は、エッジケースと互換性の問題に対応しています。また、クエリ可能、再利用可能、チェーン化可能なタスクを作成することもできます。Android の推奨タスク スケジューラでもあります。この Codelab では、簡単なジョブの作成から、より複雑なチェーン化された制約付きジョブの作成まで、WorkManager の使い方を詳しく説明します。
Android TV のホーム画面チャンネルとのコンテンツ統合(Kotlin)
Updated 2024年2月23日
この Codelab では、Android TV のホーム画面機能を紹介します。チャンネルとプログラムを Android TV のホーム画面に追加して見つけやすくする方法について学びます。
Keyboard focus management in Compose
1時間 59分
Updated 2025年4月22日
Learn how to manage keyboard focus in Compose
(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) 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 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) 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.
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.
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!
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.
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.
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.
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.