Open
Description
Any thoughts why I can only get 4 properties?
CarPropertyConfig{mPropertyId= 287310850 > PARKING_BRAKE_ON
CarPropertyConfig{mPropertyId= 289408000 > GEAR_SELECTION
CarPropertyConfig{mPropertyId= 289408001 > CURRENT_GEAR
CarPropertyConfig{mPropertyId= 289408009 > IGNITION_STATE
When I list all properties, I only see the above 4:
// Create a list of properties in debug window
val carPropertyList = carPropertyManager.propertyList
Log.d(TAG, "carPropertyList: " + carPropertyList.toString())
for (i in 0 until carPropertyList.size) {
val carProperty = carPropertyList[i]
data.add(carProperty.toString())
}
If I try to register any other property, I get an error:
E/CarPropertyManager: registerListener: propId is not in config list: 291504647
Here's the code I try to use:
// Subscribes to the car speed events.
carPropertyManager.registerCallback(
carPropertyCarSpeedListener,
VehiclePropertyIds.PERF_VEHICLE_SPEED,
CarPropertyManager.SENSOR_RATE_ONCHANGE
)
I did add CAR_SPEED permission to my manifest:
<uses-permission android:name="android.car.permission.CAR_SPEED" />
Metadata
Metadata
Assignees
Labels
No labels