Android 6.0 サンプル
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
サンプル プロジェクトをダウンロードまたは参照して、Android 6.0 API(API レベル 23)を使ってみましょう。サンプルは Android Studio から直接ダウンロードできます。[File] > [New] > [Import Sample] メニュー オプションを選択し、目的のサンプルを選択します。
注: 以下のダウンロード可能なプロジェクトは、Gradle と Android Studio でご利用いただくために提供しています。
-
Camera2Basic:
このサンプルは、
Camera2
API を使用して RAW カメラ バッファをキャプチャし、DNG
ファイルとして保存する方法を示しています。
- DeviceOwner:
このサンプルは、デバイス オーナー機能を使用してデバイスを管理、構成する方法を示しています。
-
生体認証: このサンプルでは、登録された指紋を認識してアプリのユーザーを認証する方法を示します。
-
MidiScope: このサンプルは、MIDI API を使用して、接続された入力デバイスから MIDI 信号を受信して処理する方法を紹介します。
-
MidiSynth: このサンプルは、MIDI API を使用して、接続された入力デバイスから MIDI メッセージを受信して再生する方法を紹介します。
-
NFC プロビジョニング:
このサンプルは、NFC を使用して、特定のデバイス オーナーを持つ他のデバイスをプロビジョニングする方法を示しています。
-
RuntimePermissions:
このサンプルでは、Android 6.0(API レベル 23)以降で使用できるランタイム権限を紹介します。ログを画面に表示して、実行状況を確認します。Android 6.0 デバイスで実行すると、6.0 専用のオプション権限を使用して連絡先にアクセスするための追加オプションがアプリに表示されます。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Android 6.0 Samples\n\nDownload or browse sample projects to get started with Android 6.0\nAPIs (API level 23). You can download the samples\ndirectly from Android Studio --- just select the **File \\\u003e New \\\u003e Import\nSample** menu option and pick the sample you want.\n\n\n**Note:** These downloadable projects are designed\nfor use with Gradle and Android Studio.\n\n- [Camera2Basic](https://github.com/android/camera-samples/tree/main/Camera2Basic#readme): This sample demonstrates how to use the `Camera2` API to capture RAW camera buffers and save them as `DNG` files.\n- [DeviceOwner](https://github.com/googlearchive/android-DeviceOwner): This sample demonstrates how to use the device owner features to manage and configure a device.\n- [Biometric\n Authentication](https://github.com/android/security-samples/tree/main/BiometricAuthentication/#readme): This sample demonstrates how to recognize registered fingerprints to authenticate your app's user.\n- [MidiScope](https://github.com/android/media-samples/tree/main/MidiScope): This sample demonstrates how to use the [MIDI API](/reference/android/media/midi/package-summary) to receive and process MIDI signals coming from an attached input device.\n- [MidiSynth](https://github.com/android/media-samples/tree/main/MidiSynth): This sample demonstrates how to use the [MIDI API](/reference/android/media/midi/package-summary) to receive and play MIDI messages coming from an attached input device.\n- [NFC Provisioning](https://github.com/googlearchive/android-NfcProvisioning): This sample demonstrates how to use NFC to provision other devices with a specific device owner.\n- [RuntimePermissions](https://github.com/googlesamples/android-RuntimePermissions): This sample shows runtime permissions available in Android 6.0 (API level 23) and higher. Display the log on screen to follow the execution. If executed on an Android 6.0 device, the app displays an additional option to access contacts using an 6.0-only optional permission."]]