Używanie zaawansowanego emulatora
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Może być konieczne przetestowanie aplikacji na urządzeniu wirtualnym przy użyciu nie tylko podstawowych gestów na ekranie dotykowym, ale także przesuwania telefonu. Możesz np. symulować różne lokalizacje lub warunki sieciowe. Na tej stronie omawiamy zaawansowane funkcje emulatora oraz różne sposoby uruchamiania emulatora w Android Studio.
Na innych stronach w tej sekcji opisano jeszcze bardziej zaawansowane sposoby korzystania z emulatora, które wymagają użycia terminala. Te bardziej specjalistyczne przypadki użycia to:
Dla większości deweloperów aplikacji podstawowe funkcje nawigacji emulatora i funkcje na tej stronie zaspokajają potrzeby związane z testowaniem. Porównanie możliwości emulatora w zależności od tego, jak z niego korzystasz, znajdziesz w porównaniu funkcji emulatora.
Ograniczenia
Emulator Androida nie zawiera sprzętu wirtualnego dla:
- Bluetooth
- NFC
- Wkładanie/wyjmowanie karty SD
- Słuchawki podłączone do urządzenia
- USB
Emulator zegarka na Wear OS nie zawiera przycisku Przegląd (ostatnie aplikacje), pada kierunkowego ani czytnika linii papilarnych.
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],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."]]