Android Emulator - how to emulate a headset.
Is it possible to simulate the action of a connected headset?
Basically, I want this intention to be Intent.ACTION_HEADSET_PLUG - Intent.ACTION_HEADSET_PLUG . Is there any other way to do this differently than simulate a connected headset?
Intent.ACTION_HEADSET_PLUG
In the official link on the Android emulator: Emulator Limitations: In this release, emulator restrictions include:
Perhaps you could test it with mock objects and events? (JUnit?)
If you are trying to turn on the headset, you can try the following:
AudioManager manager = (AudioManager)Context.getSystemService(Context.AUDIO_SERVICE) manager.setBluetoothScoOn(boolean on);
Source: https://habr.com/ru/post/894163/More articles:if strings are immutable in C #, why am I doing this? - c #How to find which industry is tracking the current branch - gitDollar notation in script languages - why? - javascriptwhat type (jQuery) is jqueryIs it an iphone simulator capable of showing title and latitude, longitude? - iosHow to define Assetic resources in a Symphony 2 yml or xml configuration file? - symfony1How to create an array of objects in rails? - arraysWith Assetic / Twig / Symfony2, can I define foreground libraries? - symfonyMarking polygon vertices in Mathematica - wolfram-mathematicahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/894168/java-library-using-css-selectors-to-parse-xml&usg=ALkJrhhkRJxSV2AtMkonOsw8iHNuSDmfvQAll Articles