Android Emulator – How to emulated headset plugged.
-
Is it possible to simulate the action of a headset being plugged in?
-
Basically, I want this intent fired –
Intent.ACTION_HEADSET_PLUG. Is there any other way to do this other than simulating a headset being plugged in?
From the official reference on Android emulator:
Emulator Limitations:
In this release, the limitations of the emulator include:
Perhaps you could test it with mock objects and events? (JUnit?)