B4A Question android.intent.action.MEDIA_BUTTON again... - lemonisdead    
Jan 2, 2015   
(1 reaction).action.MEDIA_BUTTON" />
</intent-filter>)
Many thanks :)...Hello,
I have made some tests trying to detect a press on the small button included on some wired...
link: YESSSSS !!!! Got it working. I had to disable SmartConnect on Sony Phone and now I get the intents, ...
link: the MEDIA_BUTTON and it works
- I restart the phone and it works all the time. I have tried 10 times to be sure...
link: the MEDIA_BUTTON and it works
- I restart the phone and it works all the time. I have tried 10 times to...
B4A Question Car media buttons - Scantech (first post)    
Sep 26, 2025 Process_Globals
'Change event name if you like
Public EventName As String = "MediaButton...("Listening for media buttons")
.setSmallIcon(android.R.drawable.ic_media_play...
link:
what AI did you use? so far every ai I have tried gives me bad code and hallucinations. This one is...
link: media control (AVRCP) button presses, but the method depends on whether you want to:
✅ Stream &...
B4A Question still unable to work car media button - Pendrush (first post)    
Aug 10, 2025   
(1 reaction)Older version, not update in a while, but you can test it to see is it work at all:
https://www.b4x...
link: +...
link: hmmm, nobody with any help on this? This should not be this difficult....
link: that works.
All I want is to catch the next, prev, play, pause buttons from the car media. Forgive me for...
B4A Question Strange delay using onMediaButtonEvent when holding the Button - sandreas    
Jun 20, 2025I'm trying to write an Audio Player App with fine grained control over Headset media buttons... with no delay in onMediaButtonEvent (the RIGHT way - is this possible?)
Raising the 650ms schedule timer to 1100ms which leads to slower response times
A totally custom `MediaButtonReceiver` handling... app and integrated the mediaButton algorithm for testing (it's a bit rough and may not be fully correct, but it does the job):
onMediaButtonEvent handling
MediaButton-Tap-Pattern-Algorithm...
B4A Question MEDIA_BUTTON with Android 7+ and API 26 - scsjc    
Oct 25, 2018I, i try to get the press buttons on bluetooth, but dont have answer....
i try with this sample:
https://www.b4x.com/android/forum/threads/mediasessions.62525/#post-394744
require some permision...
link: /android/forum/threads/android-intent-action-media_button-again.48890/#content
also tried to change...
link: If the app is visible then you should be able to catch this event with Activity_KeyPress.
I know, bu...
link: If the app is visible then you should be able to catch this event with Activity_KeyPress....
B4A Question android.intent.action.MEDIA_BUTTON - Jmu5667    
Nov 19, 2015Hello All
I am having trouble with the android.intent.action.MEDIA_BUTTON intent receiver. I have attached a simple project, please have a look.
What I want to achieve:
Detect that the button on the headset is being pressed for more than 3 seconds.
What does work:
When the button... RegisterForMediaButton which @Erel says needs to be done.
All help would be appreciated. I have an old....
The problem:
When the button is pressed and not released, Google pops up (or any other app...
B4A Question Detect media button use on BT earbuds - gunnarjonsson (first post)    
Apr 28, 2022I have tried your app and it works with my BT earbuds. I can however not use it with downloaded files since it is only for streaming media.
Gunnar Jonsson...
link: I don't think it is possible without using MediaSession.
You can try PndAudioExoPlayer example...
link: directly with audio player program, so you search about INTENTS.
In your case use ACTION_MEDIA_BUTTON...
link: Hi All!
I have an app for Internet radio that also plays downloaded files. I use Exoplayer for this ...
B4A Question Headphone Media Button - epiCode    
Oct 2, 2021   
(1 reaction)Can some please help with working example of media button detection ?
Searched the forum, but mostly devs sharing their issues - no successful/working example (recent)...
B4A Question How to detect media button pressed - Erel (first post)    
May 3, 2020Check these threads: https://www.b4x.com/android/forum/pages/results/?query=media+button...
link: a media button has been pressed.
Any suggests?...
thanks
Luis....
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: starter service running on the screen but it never gets the media button actions.
https://www.b4x.com...
Page: 1  
2  
3  
4  
5