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
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
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 solved? Below, small series to introduce a meth
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
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
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.
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
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
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
Example of headset plugging and audio channel switching for Android underlying development
Example of headset plugging and audio channel switching for Android underlying development
Because the headset is separated by the headset microphone, the incident should be reported separately. In the Android system layer, the
The example in this article describes the Android implementation method for adding headphones status icons. Share to everyone for your reference. Specifically as follows:
The original eco-Android system is not indicated by a headset insert or insert status, this article explains how to add a headset insert status indicator. The effect chart is as follows
As shown in the figure, a
From: http://embed.chinaitlab.com/J2ME/877029.html
Recently, I was working on a Marvell project and encountered a hot plug-in problem. So I took a look at the relevant code. I would like to make a contribution here.
Here we take the PXA code as an example. The entire framework is simple and clear. The upper layers are headsetobserver. Java and hookswitchobserver. java,
They will directly read the state of a
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 classHeadsetplugreceiverextendsBroadcastreceiv
What is Bluetooth?
Bluetooth is the origin of the Tenth century unification of Denmark and Norway's Nordic Viking king Harald Bluetooth, because the king likes to eat blueberries, gums are blue every day, so called Bluetooth. Modern Bluetooth technology is developed by Ili Xin (Ericsson) A short-range wireless interface, and in 1998 with IBM, Intel, Nokia, Toshiba Five manufacturers set up Bluetooth SIG Bluetooth alliance (Bluetooth Special Interest Group). And the main three features of Blueto
A lot of people in the Bluetooth headset when charging is always careless, general Bluetooth headset charging 2 hours is good. The direct consequence of long charging time is that the machine board aging or even burned out, a variety of inexplicable machine failures, such as standby time shortened, frequent disconnection, call distance shortened, unable to boot, etc., so please take care of your machine, do
to manually write the code to register the broadcast.First, create a subclass of BroadcastReceiver to listen to the plug-in and pull-out of the headset:[Java]Copy codeThe Code is as follows: public class HeadsetPlugReceiver extends BroadcastReceiver {Private static final String TAG = "headsetplugreceivreceiver ";@ OverridePublic void onReceive (Context context, Intent intent ){If (intent. hasExtra ("state
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.