B4A Question [RESOLVED] Android 5.0 - StartBluetoothSco not working. - Jmu5667    
Jul 19, 2018Hi All
Has anyone any issues with StartBluetoothSco not working on Android 5.0, specifically 5.1.1... threads on the forum about how to use StartBluetoothSco, but no mention of anyone having issues...
link:
It's a bit hit and miss on samsung devices (Lollipop), does not always work, I will do so more...
link: the BluethoothSCO bit
Sub StartBluetoothSco()
Dim r As Reflector
Dim ph As Phone...
link: ("connector:init_stream() BEFORE StartPlaying")
audioStream.StartPlaying
Log...
B4A Question Media play by Blutooth headset instead of wire headset. - LUHUANWEI    
Nov 27, 2017("setMode", mode, "java.lang.int")
End Sub
Sub StartBluetoothSco()
Dim r... Activity_Create(FirstTime As Boolean)
SetEarPhone(True)
StartBluetoothSco
End Sub
Sub Activity_Pause...", "java.lang.String")
r.RunMethod("startBluetoothSco")
r.Target = r...It is possible to play media via Bluetooth headset while both BT headset and wire headset are connected? or play media by both BT headset and wire headset in the same time, now only wire headset when...
B4A Question I need b4a code to use BT setcommuniactiondevice / Clearcommunicationdevice , for Bluetooth MIC audio recording - abdulla    
Sep 17, 2023 and connected Bluetooth device unless or until i execute the below code :
Sub StartBluetoothSco...("getSystemService", "audio", "java.lang.String")
r.RunMethod("startBluetoothSco")
Log("startBluetoothSco")
End Sub
and also when i need to stop...("stopBluetoothSco")
End Sub
meaning that startbluetoothsco will let android switch recording...
link: and connected Bluetooth device unless or until i execute the below code :
Sub StartBluetoothSco...
B4A Question [RESOLVED]Audio Streamer Lib - Using a BT Mic & Headset - Erel (first post)    
Jul 11, 2018   
(1 reaction)Based on this answer: https://stackoverflow.com/questions/4026002/how-to-record-sound-using-bluetooth-headset
You need to call startBluetoothSco. https://www.b4x.com/search?query=startBluetoothSco...
link: -bluetooth-headset
You need to call startBluetoothSco. https://www.b4x.com/search?query=startBluetoothSco...
B4A Question Set audio path to BT device(Solved) - PeterPaulGumpal (first post)    
Jun 16, 2018 for me:
Sub StartBluetoothSco()
Dim r As Reflector
ToastMessageShow("Start sco", False...", "java.lang.String")
r.RunMethod("startBluetoothSco")
Log("StartBluetoothSco") '<--------------
End Sub
except that I had to add these:
(Service_Create...("startBluetoothSco")
as the control of the bluetooth key (from the headset) gets...
link: Done some mor tests ..
But no Luck so far
Sub StartBluetoothSco()
Dim r As Reflector...
B4A Question how record from blootooth mic - MAJID4221577    
Dec 7, 2023 = False
StartBluetoothSco
CallSub(AudioRecord,"btnStartRecording_Click")
End Sub
Sub...)
timer1.Enabled = False
btnStartRecording.Enabled = True
End Sub
Sub StartBluetoothSco...", "audio", "java.lang.String")
r.RunMethod("startBluetoothSco")
Log("startBluetoothSco")
End Sub
Sub stopBluetoothSco()
Dim r...
Label1.Text = ""
stopBluetoothSco
CallSub(AudioRecord...
B4A Question Bluetooth headset sco problem - Erel (first post)    
Dec 10, 2013Is this code executed?
Sub StartBluetoothSco()
Dim r As Reflector
ToastMessageShow("Start sco", False)
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
r.RunMethod("startBluetoothSco")
Log("StartBluetoothSco") '<--------------
End Sub
...
link: is redirected into bluetooth device using the starBluetoothSco() method (AudioManager native library...
B4A Question Mediaplayer on bluetooth earphone - LUHUANWEI    
Aug 16, 2016I used below code start bluetooth earphone, but the voice still come from speaker instead of bluetooth earphone when Mediaplayer play a media file, how can I play the Media ONLY from bluetooth earphone?
Sub StartBluetoothSco()
Dim r As Reflector
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "audio", "java.lang.String")
r.RunMethod("startBluetoothSco")
r.Target = r.GetContext
r.Target = r.RunMethod2...
B4A Question Check bluetooth headset is connected - brelto85 (first post)    
Apr 4, 2013I read the following from android documentation
...
As the ACTION_SCO_AUDIO_STATE_UPDATED intent is sticky, the application can check the SCO audio state before calling startBluetoothSco() by reading the intent returned by the receiver registration. If the state is already CONNECTED, no state change will be received via the intent after calling startBluetoothSco(). It is however useful to call startBluetoothSco() so that the connection stays active in case the current initiator stops...
B4A Question How to record by bluetooth mic? - Erel (first post)    
Aug 3, 2014   
(1 reaction)Try to call StartBluetoothSCO with the code posted here: http://www.b4x.com/android/forum/threads/bluetooth-headset-sco-problem.35498/#post-208544
You also need to add this line to the manifest editor:
AddPermission(android.permission.MODIFY_AUDIO_SETTINGS)
...
Page: 1  
2  
3  
4  
5  
6  
7