Android 7.0 示例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过下面的代码示例,了解 Android 7.0 的功能和 API。如需在 Android Studio 中下载这些示例,请依次选择 File > New > Import Samples 菜单选项。
注意:这些可下载的项目旨在与 Gradle 和 Android Studio 配合使用。
多窗口 Playground
此示例演示了如何在应用中充分利用多窗口界面。
在 GitHub 上获取
直接启动
此示例演示了如何在设备加密存储空间中存储和访问数据;启动设备后,该存储空间始终可用。
在 GitHub 上获取
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Android 7.0 Samples\n\nUse the code samples below to learn about Android 7.0 capabilities and APIs. To\ndownload the samples in Android Studio, select the **File \\\u003e New \\\u003e Import\nSamples** menu option.\n\n\n**Note:** These downloadable projects are designed\nfor use with Gradle and Android Studio.\n\n### Multi-Window Playground\n\n\nThis sample demonstrates how to take advantage of multiple window\nuser interfaces with your app.\n\n\n[Get it on GitHub](https://github.com/android/views-widgets-samples/tree/main/MultiWindowPlayground) \n\n### Direct Boot\n\n\nThis sample demonstrates how to store and access data in a device encrypted\nstorage which is always available while the device is booted.\n\n\n[Get it on GitHub](https://github.com/android/security-samples/tree/main/DirectBoot)"]]