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 already gave you an answer HERE.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…