Android Question Car media buttons

apti

Member
I am trying to catch the media button presses in a car in b4x. Nothing is working or helping. Does anybody have a simple solution or detailed information on how to do this? I am new to b4x but not a new programmer. AI has not helped at all. I just want to catch the basic buttons like play, pause, next, and back.
maybe code examples that work would help, along with if I need to do anything to the manifest.
 

Cableguy

Expert
Licensed User
Longtime User
You need to give out more info, like the android version, even maybe the Car Make & model... I have a Renault Austral with Android 10 R-Link, but haven't yet tried to tap into it, but I know it can do side loading.
 
Upvote 0

apti

Member
model of car should not matter because it is just the bluetooth connection and from what I found it is no relevant. Android version would be version 13 and up. although I would prefer to support version 11 and up. I have seen other media apps that worked fine from car to car this way. Thing is mine will be totally google free. No analytics or anything that communicates with google.
I hope that is enough information, happy to give more if needed.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
So it's a OEM head unit?
You can start by creating a small app that catches keystrokes, and logs it to scren, for example... the base Android version is set in the manifest (min SDK), and as long as you find a bl.5 lib, it should be ok, even for bl6 devices...
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
I am trying to catch the media button presses in a car in b4x. Nothing is working or helping. Does anybody have a simple solution or detailed information on how to do this? I am new to b4x but not a new programmer. AI has not helped at all. I just want to catch the basic buttons like play, pause, next, and back.
maybe code examples that work would help, along with if I need to do anything to the manifest.

I already gave you an answer HERE.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I already gave you an answer HERE.
Now I get it!!!
To me the OP was trying to tap into the system itself, by creating an app to run in the said system...
Now, if I now understand this correctly, what he wants to build is a MOBILE app (i.e. for a smartphone as opposed to the unit itself) so that he can control the audio system from said phone... details matter, INFO matters!
 
Upvote 0

apti

Member
Now I get it!!!
To me the OP was trying to tap into the system itself, by creating an app to run in the said system...
Now, if I now understand this correctly, what he wants to build is a MOBILE app (i.e. for a smartphone as opposed to the unit itself) so that he can control the audio system from said phone... details matter, INFO matters!
correct, I guess I was not clear. I would have been if I was aware I could use this to program the head unit. Made the assumption it was all from a mobile device.
 
Upvote 0
Top