多任务处理和多实例
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

第 1 层级 - 针对大屏设备提供差异化体验
大屏设备的大屏幕空间让用户能够同时运行多个应用或同一应用的多个实例,从而提升用户体验并提高工作效率。
多任务处理
应用可以在分屏模式下并排运行,也可以在桌面窗口化模式下分别在可移动且可调整大小的窗口中运行。您的应用可以通过深层链接在单独的窗口中打开其他应用,在自己的窗口中打开附件,或在画中画模式下播放视频。
多实例
您的应用可以在单独的窗口中启动自身的多个实例,以便进行文档编辑、网页浏览、文件管理和商品比较。
后续步骤
如需了解如何充分利用多任务和多实例用例,请参阅以下开发者指南:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Multitasking and multi-instance\n\nTIER 1 --- Large screen differentiated\n| **Objective:** Make your app [large screen differentiated](/docs/quality-guidelines/large-screen-app-quality#large_screen_differentiated) by meeting the [LS-M3](/docs/quality-guidelines/large-screen-app-quality#LS-M3) multitasking and [LS-M4](/docs/quality-guidelines/large-screen-app-quality#LS-M4) multi‑instance requirements of the [Large screen app quality](/docs/quality-guidelines/large-screen-app-quality) guidelines.\n\nThe expansive screen space of large screen devices enables users to run multiple\napps or multiple instances of the same app simultaneously for an enhanced user\nexperience and increased productivity.\n\nMultitasking\n------------\n\nApps can run side by side in split-screen mode or in separate, movable,\nresizable windows in desktop windowing. Your app can open another application in\na separate window from a deep link, open attachments in their own windows, or\nplay videos in picture‑in‑picture mode.\n\nMulti-instance\n--------------\n\nYour app can launch multiple instances of itself in separate windows for\ndocument editing, web browsing, file management, and product comparisons.\n\nNext steps\n----------\n\nTo learn how to make the most of multitasking and multi‑instance use\ncases, see the following developer guides:\n\n- [Support multi-window mode: Compose](/develop/ui/compose/layouts/adaptive/support-multi-window-mode)\n- [Support multi-window mode: views](/develop/ui/views/layout/support-multi-window-mode)\n- [Support desktop windowing](/develop/ui/compose/layouts/adaptive/support-desktop-windowing)\n- [Add videos using picture-in-picture (PiP)](/develop/ui/views/picture-in-picture)"]]