Today in the project, you need to listen to the headset Plug and play, so I wrote the following a small demo, the headset monitoring events to verify. Look directly at the code PackageCom.example.alert; ImportAndroid.content.BroadcastReceiver; ImportAndroid.content.Context; Importandroid.content.Intent; ImportAndroid.util.Log;ImportAndroid.widget.Toast; Public c
if one of the most significant accidents occurs in a project, it is no doubt that the developer is using an element that is not controllable.
Objective
iOS development in the development of audio and video playback is not uncommon, users often use an output device, that is, "headphones", this blog is about some of the development of headphones related technical points. Detect if the headset is plugged in
See above the title of the time
[WFD] Connect WiFi display, plug in wired headphones, sound should go to headset side[DESCRIPTION]
Connect WiFi display, plug in Wired headphones, play music or multimedia, sound on the TV side.
[Solution]
This is the Android default design, if you want to change, modify the policy section,
AudioPolicyManager.cpp's Getdeviceforstrategy function,
Case Strategy
is IOS6 the previous implementation, we can see that this API is a relatively low-level implementation, its callback or C implementation, rather than our usual practice of OC implementation. so in IOS6 and beyond, the API is deprecated (of course, if you still use it, you can still implement the function), we have a better and more advanced implementation to solve the problem:[[nsnotificationcenterdefaultcenter] addobserver: Self selector:@selector(outputdevicechanged:) Name:avaudiosessionr
1, we click the "Start Menu" to find the "control Panel" details as follows;
2, then we click "Hardware and Sound";
3, then in the Open interface we click on the "Realtek high-definition Audio Manager" details as shown below;
4, after entering as shown in the figure, we click on "Equipment Advanced settings" as shown in the following figure;
5, Next tick the second item "to separate all input jacks into a separate input device", and then click OK;
6, fina
We know that in all computers are like this, we plug in headphones, the computer will automatically switch to the headset mode, but if unplug the headset, our computer voice does not shut down, it will be directly out of the outside, so it is very easy to affect the people around. This is especially true for some of the users who use it at work. So what can be so
Android headset line control details, Bluetooth headset button monitoring (similar to cool dog line control effect)
When the media button of the headset is clicked, the Android system sends a broadcast. The broadcast carries an Intent with the Action MEDIA_BUTTON. After listening to the broadcast, you can obtain the click events of the
unreasonable. Although this headset looks like a bag-type ear, but in fact the ear mask area is not big enough, the depth is not enough, the hardness of the soft pad is hard, not breathable, and serious Chuck, as a result, a long combination of the bottom of the ear and the top of the ear can cause great pain. In addition, the ear is in a pressed state for a long time, thus completely losing the joy of listening to music, this is also the biggest rea
1. On the Apple 5s desktop we found a "Settings" icon, click to enter, as shown in the following figure.
2. Then you will see a "Bluetooth" menu, and we click on it to enter.
3. Now we can switch to "Bluetooth" operation, then the phone will automatically search next to the Bluetooth device,
4. When our Bluetooth headset is connected to the Apple 5s we first have to match the phone with the Bluetooth head
To connect to your Bluetooth headset, follow these steps:
1. As shown in the picture, we click on the "app" icon inside and open it in detail as follows.
2. Furthermore, we click on the "Set" icon to open the entry.
3. Select "Connect" and then click "Bluetooth".
4. After entering we need to turn on the "Bluetooth" function, and then we connect the Bluetooth headset.
Customer requirements
After the headset is pulled out during FM playback, The FM app displays a prompt box Indicating "unplug the headset and stop the FM", and then automatically close
Modify fmradioservice. Java1. Add the following import to display the toast
/// AAAAA add start
Import Android. widget. Toast;
/// AAAAA add endpublic class fmradioservice extends Service implements fmrecorder. onrecordersta
After the customer asks the FM to unplug the headset during playback, the fm app displays a prompt box Indicating "unplug the headset and stop the Fm", and then automatically closes
Modify FMRadioService. java1. Add the following import to display the toast/// AAAAA add startImport android. widget. Toast;/// AAAAA add endPublic class FMRadioService extends Service implements FMRecorder. OnRecorderStateChang
Airpods wireless headset and IPhone7 pair use the tutorial, not too familiar with the friend to learn.
Airpods with the iphone is very simple, the following is the specific method steps:
1, first the iphone 7/7 plus Bluetooth features open, as shown in the following figure.
2, put the Airpods headset in the charging box, and open the lid, near any open Bluetooth IPHONE7/7 Plus, the screen will appear
First, we have to open the Bluetooth headset, otherwise the following operation is useless.As shown in the following figure, we can move the Bluetooth headset switch up and down in the Bluetooth headset, of course we can (long hold down the listening key for about 3-5 seconds, the LED becomes blue and often light to let go) the details are shown below.Two, OK now
PS with a white towel (paper napkin), with hot water bubble (you can endure the heat, careful scald oh) half wring dry, warm, follow the earphone line clamp a wipe, should line ah, I tried
Action method:
1, the preparation of some hot water, the water temperature to reach their maximum temperature can endure (water temperature not too high, may use a towel hand-held operation can be).
2. Take a towel, soak it with hot water, and then half wring dry, while it is warm, evenly and firmly along
In the Millet Bluetooth headset accessories have a charge line, but the powder division found no charger, this as long as the use of mobile phone charger can be, this use of millet mobile phones or other smart phones can be.
With the help of the Millet Bluetooth headset charger line, Android mobile power adapter, you can charge the Millet bluetooth headset.
Control music playback with headphone cable
1, the main function of a few keys, but also we commonly used include the volume Plus, play/pause keys, volume reduction keys,
2, all the volume on the Apple phone can be controlled by the volume key above, including the addition and subtraction in the control and the next to the Apple phone volume plus and minus is the same effect, as follows.
3, click the Headphone line control function key Groove key, you can control the song playback and pau
strange talk of friendsThe following link may be helpful to youHttp://auto.enorth.com.cn/system/2002/11/18/000455573.shtml
I reiterate my personal opinion that high-end civilian headphones do not need to be burned.The result is that each person's headphones are worn out to varying degrees.If you think you are not convinced,You can find the same type of headset memory spectrum response measurement that both think is open.I think the results are defi
1. The following figure shows our notebook Bluetooth is normally open, if not open their own first open, and then we right-click the Bluetooth icon, click on the pop-up menu "add Device" specific as shown below.
2. Then in the pop-up to add Bluetooth interface we click on their own to add Bluetooth
3. The system prompts you to connect to the Bluetooth adapter, as shown in the following illustration.
4. If there's no problem, I'll let you know. Adding Bluetooth is successful, as shown in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.