進階模擬器使用方式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
除了使用基本觸控螢幕手勢和手機動作以外,您在虛擬裝置上可能還需要透過別種方式測試應用程式。例如,您可能要模擬不同位置或網路狀況。本頁將說明進階模擬器功能,以及透過 Android Studio 啟動模擬器的不同方式。
本章節其他頁面會介紹更多使用模擬器的進階方式,而這需要透過終端機執行。這類特殊用途包括:
對大多數應用程式開發人員來說,基本模擬器操作功能和本頁所述功能就已涵蓋測試需求。如要根據互動方式並列比較模擬器功能,請參閱模擬器功能比較。
限制
Android Emulator 不提供下列虛擬硬體:
- 藍牙
- NFC
- SD 卡插入/退出
- 連接裝置的耳機
- USB
Wear OS 的手錶模擬器不提供「總覽 (最近使用的應用程式)」按鈕、D-Pad 和指紋感應器。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[],[],null,["# Advanced emulator usage\n\nYou might need to test your app on a virtual device using more than\njust basic touch screen gestures and phone movements. For example, you might want to\nsimulate different locations or network conditions. This page covers advanced\nemulator features and different ways to launch the emulator with Android\nStudio.\n\nThe other pages in this section cover even more advanced ways to use the\nemulator, which require you to use the terminal. These more specialized use cases are:\n\n- If you aren't using Android Studio, you can [start the emulator from the command line](/studio/run/emulator-commandline).\n- To test features including fingerprint validation, or to change your virtual device's battery state, you can [send emulator console commands](/studio/run/emulator-console).\n- To have two emulator instances that can communicate to each other, or to set up other complex network architectures, you can [set up emulator networking](/studio/run/emulator-networking).\n\nFor most app developers, the\n[basic emulator navigation capabilities](/studio/run/emulator#navigate) and\nthe features on this page cover your testing needs. For a side-by-side\ncomparison of what you can do with the emulator depending on how you interact\nwith it, see [the emulator feature comparison](/studio/run/emulator-comparison).\n\nLimitations\n-----------\n\nThe Android Emulator doesn't include virtual hardware for the following:\n\n- Bluetooth\n- NFC\n- SD card insert/eject\n- Device-attached headphones\n- USB\n\nThe watch emulator for Wear OS doesn't provide the Overview (Recent Apps)\nbutton, D-pad, or fingerprint sensor."]]