B4A Question Headset button press - hookshy    
Aug 10, 2014I've started new thread on because after setting up the app to respond to headset button... use headset but when the user presses the button other action actually is executed as it is set as default !
So.. Question would be how do I help user clear de default actions of the button pressed... I have searched for hours to find how to disable music play on wire headset on LG optimus L5....
link: Try to create a dynamic broadcast receiver with BroadcastReceiver library and then abort the intent....
B4A Question Detect the status of the call button of the headset - Der Mond    
Aug 1, 2012:sign0085:
Is there a way to detect the status of the call button of the headset?
Thank you and good summer
Vincenzo...
link: Have you tried to intercept it with Activity_KeyPress?
Work!
When I press the button KeyPress...
link: Have you tried to intercept it with Activity_KeyPress?...
B4A Question handle headset button (Bluetooth/Aux) - DonManfred (first post)    
Mar 12, 2019https://www.b4x.com/android/forum/pages/results/?query=button+headset...
link: hi ,
i want handle headset button in Service Module
I need Help !
@Erel...
B4A Question Headset Media Button not working in Android 8 - woodpecker (first post)    
Aug 21, 2018   
(1 reaction)See this: https://stackoverflow.com/questions/45960265/android-o-oreo-8-media-buttons-issue
Try to play something when you start your app.
Thanks Erel, all I had to do was initialize a mediaplayer, start and stop it instantly and it works fine!
MediaPlayer1.Play
MediaPlayer1.Stop
...
link: See this: https://stackoverflow.com/questions/45960265/android-o-oreo-8-media-buttons-issue
Try to...
link: I have an Android 8 phone I don't get any events from the headset button, the app runs and shows...
B4A Question android.intent.action.MEDIA_BUTTON again... - lemonisdead    
Jan 2, 2015   
(1 reaction)Hello,
I have made some tests trying to detect a press on the small button included on some wired headsets.
When the activity is not paused, I get the activity keypress with value 79 each time...
link: : https://www.b4x.com/android/forum/threads/headset-button.47242/#post-296979 this is, what works for me...
link: the headset button). (2) How can the SUB ACTIVITY_KeyUp(Keycode as int) as Boolean detect it for...
link: on most wired headsets.
Is it really a MEDIA_BUTTON ?
https://www.b4x.com/android/forum/attachments...
B4A Question Headset button - stari (first post)    
Dec 30, 2014Hi,
Erel thks for help. I have another problem with this aplication.
All thinks are working OK, but ...
link: Static intents cannot be removed. However you can decide in the service what you want to do. You can...
link: Hello, mr. Erel. all OK, only now i wish to close application and i wish, that static intent is no m...
B4A Question Long press headset button - brelto85 (first post)    
Dec 15, 2013missing the link
http://stackoverflow.com/questions/11451430/handling-headset-buttons-before-voice-search-on-jelly-bean...
link: . In Android 4.0+, all media button receivers have to use registerMediaButtonEventReceiverto receive...
link: You can try setting the priority to a higher value:
Broadcast.SetPriority(0x7FFFFFFF) 'max int
...
link: i'm trying to use BroadcastReceiver to register a long press of headset button
I've write...
Share My Creation VR Headset with B4A. - js486dog    
Mar 12, 2024   
(8 reactions) when programming with B4A for Quest 3.
What I tried.
Works fine with the headset:
Button.Click, Button.LongClick
Label.Click, Label.LongClick
Activity.ACTION_DOWN
Activity.ACTION_MOVE
Activity.ACTION_UP
Some events do not work with the headset:
Pinch zoom, Swipe.
ImageView.Click, ImageView...VR Headset with B4A.
151520
Is it possible to make the app for VR Headset with B4A?
Yes it is.
What we need?
Hardware:
* VR Headset:
Meta Quest 3.
There is Android 12. But a bit different than in...
B4A Question Headset 3.5mm devices - emexes (first post)    
Jul 1, 2019When you say you wanna do a external device, does that mean:
- you wish to use headset button... the headset button interface to connect to it?...
link: , but his spirit is awake: Have you searched the forum?
Key words would seem to be: headset button...
link:
use headset button(s) as external/extra inputs for your app
its impossible of disable "OK...
link: you wish to use headset button(s) as external/extra inputs for your app, or
Some month ago...
B4A Question Capture buttons from a Bluetooth audio device - yo3ggx    
Feb 2, 2024Hello,
I have a Bluetooth audio device (mic+speaker) with 3 more buttons.
Tried to capture following intents using BroadcastReceiver:
"android.intent.action.MEDIA_BUTTON"
"android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT"
Tried to request AudioFocus and start a mediaplayer ( as proposed in another thread).
Still nothing in BroadcastReceiver.
Anyone succeed to read buttons status from a Bluetooth audio device or headset in B4A?
Thank you...
Page: 1  
2  
3  
4  
5  
6  
7