AndroidIn fact, the code of the headset detection is rarely changed.
This is because there are few documents.
It took nearly two months.
The driver has three implementation versions:
First, drivers/Char/micco_hsdetect.cIt reports the status to the user space through kobject_uevent.
Second: Drivers/input/keyboard/micco_keys.cIt reports events to the user space through input_report_switch.
Third: Drivers/switch/switch_micco.cRegistered a switch_dev, whi
Headset resurrection (Entire Process)
Of course there should be a pair of ear plugs for children who like to listen to songs, so that they can truly enjoy wonderful music. But the ear plug is quite bad. Maybe only one ear is ringing in a day, but the lead of a pinch and a motion plug will occasionally ring, as a matter of fact, you may be able to get together with your ears )...... But the two ears are not ringing. The earplugs of about 10 yuan should
How to set the wince simulation simulator (Network, serial port, and headset)
Recently, I used wince to build a project, but there was only one development board for the school lab. Another senior engineer also needed it. So I tried to use the wince simulation simulator to test the program. So how to set the wince simulator? Here, XiXi will share it with you!
Before that, do you want to use a simulator to access the Internet? First install Virtual PC
Android automatically exits the FM Radio application when the flight mode is enabled and the headset is pulled out.
The FM radio needs to be inserted into the headset as an antenna, and automatically exits when the headset is pulled out.
1. First add the prompt string
Mediatek/packages/apps/FMRadio/res/values/strings. xml
The FM will close because you hav
Win8 is a new company launched by Microsoft not long system, everyone in the use of the system occurs when there are some problems, always do not know how to solve. For example, what we are going to say today: Win system in the headset can not hear the sound of the problem, you will often encounter. What a dreary and painful thing it is for the friends who love music! Then how should we solve the problem, we will follow the small series together to se
Many friends will encounter the computer suddenly did not sound or reload the system after everything else is normal, is the stereo or headphones no sound problem. I'll explain in detail the various reasons why the computer doesn't sound, and in the later part of the article, I'll explain the microphone's sound problem. Through the following detailed analysis, I believe that you can let you know that your computer is not a sound is going on, in the end what is the reason.
There's no sound on th
The FM radio needs to be plugged into the headset as an antenna and automatically exits when the headset is unplugged1. First add a hint stringMediatek/packages/apps/fmradio/res/values/strings.xml2.Modify FmradioserviceMediatek/packages/apps/fmradio/src/com/mediatek/fmradio/fmradioservice.java ---a/mediatek/packages/apps/fmradio/src/com/mediatek/fmradio/fmradioservice.java+++ b/mediatek/packages/apps/ fmra
In Ubuntu9.04, you can insert a headset into the concert and find that the speaker in the notebook will make a sound at the same time. In order to solve this problem, I searched for a while in the Ubuntu Chinese forum and did not find any simple method. I personally thought it would not be so troublesome. So I tried it for a while and found that it was really good. See the following method: 1. system volume settings- gt; volume control... device: HDAI
Linux sound card settings (speaker and headset sound solutions at the same time)-Linux general technology-Linux technology and application information, the following is a detailed description. This sound card is relatively new. It can only be installed with the official driver on windows. In linux, it is sound, that is, the Speaker and the headset are ringing together, and there is no way to listen to music
PrincipleIn fact, the Android system will send the broadcast when the headset is plugged in and unplugged, so we want to detect the headset's status only needs to register the response of the broadcastreceiver, the status of the response to the judgment is OK.The name of the broadcast is called:Android.intent.action.HEADSET_PLUGCode Packagecom.yydcdut.ear;ImportAndroid.os.Bundle;Importandroid.app.Activity;ImportAndroid.content.BroadcastReceiver;Import
PrincipleIn fact, the Android system will send the broadcast when the headset is plugged in and unplugged, so we want to detect the headset's status only needs to register the response of the broadcastreceiver, the status of the response to the judgment is OK.The name of the broadcast is called:Android.intent.action.HEADSET_PLUGCodePackage Com.yydcdut.ear;import Android.os.bundle;import Android.app.activity;import Android.content.broadcastreceiver;imp
Problem: The headset is ringing and does not ring on one sideTroubleshooting: ( on windows7 system)1, the headset on another computer to try if no problem can be ruled out the problem of headphones. 2.Volume synthesizer - speaker - Advanced Click Test if both sides are ringing, the problem is not the sound card. 650) this.width=650; "width=" 165 "height=" 196 "src="/e/u261/themes/default/images/spacer.gif "
Normally, the next time the computer will automatically recognize and connect the Bluetooth device when the user connects the Bluetooth device to the computer, And in the recent part of the win8.1 system users, in the use of Bluetooth headset, can not automatically connect each time, the user through the manual connection can not let the device and computer links, users can only reload Bluetooth driver to be paired again, for this problem how do we so
After work, I went to Pacific digital to buy a new headset. After I got home, I inserted it. A friend was on QQ and found that I could hear the other party's voice, but the other party could not hear me! The headset is definitely good. I double-click the small horn in the lower right corner and find that the "balance" of the microphone is gray. Open the "advanced" below, good guy! The adjustment button in "
How does win10 enable simultaneous sound and headset sound ?, Win10 audio
In the newly installed win10, the sound output from the back is audible, but there is no sound output from the front earphone. I made a step for learning.
To get the sound, you must first find the control panel. If you are not familiar with it, you really don't know where the win10 control panel is. Check: Right-click the blank area on the desktop and choose personalization.
By default, the short press headset key is used to pause/play music. You can press the headset key to pause/play FM as follows:
Please delete your media button code, modify as below:
1. AndroidMenifest. xml:
2. FMRadioActivity. java code:
Public interface MediaButtonListener {
Void onMediaButtonCall (Intent intent );
}
Private MediaButtonListener mMediaButtonListener = new MediaButtonListener (){
The specific methods are as follows:
1, turn on the computer Bluetooth, paired Bluetooth equipment;
2, after the success of matching in the equipment can be found. However, the pairing process may indicate that the peripheral device installation is unsuccessful;
3, at this time we will install Atheros Bluetooth device driver;
4, the installation of Atheros Bluetooth device driver is very simple, a bit of computer basics are no problem. Always the next smart installation
, mainly speaking of the third, I will be the above "iOS headset wire control" This article in the code written in the
Appdelegate method, but does not execute the Remotecontrolreceivedwithevent method (Note: This method only can be triggered by the middle of headphones), and finally added a section of audio playback code, namely:
NSString *string = [[NSBundle mainbundle] pathforresource:@ "test" oftype:@ "MP3"];
Convert audio files to URL format
Nsur
(@ "Click, then press not to put, loosen when: 109");
}break;
Default
Break
}
}
}
Add the above code to get the headset line control of each click event, tick the taxi before the version of a headset grab a single function, is so realized
====================================================================================================
Capture Headphone Plug event in iOS development
void Audior
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.