Vehicle properties
Fuel & energy
FUEL_LEVEL_LOW
What it is
Warning for fuel low level.
This property corresponds to the low fuel warning on the dashboard. Once FUEL_LEVEL_LOW is set, it should not be cleared until more fuel is added to the vehicle. This property may take into account all fuel sources for a vehicle - for example:
For a gas powered vehicle, this property is based soley on gas level.
For a battery powered vehicle, this property is based solely on battery level.
For a hybrid vehicle, this property may be based on the combination of gas and battery
levels, at the OEM's discretion.How the ID is built
A property ID is a 32-bit value packing four fields. Reading 0x11200405 apart:
| Field | Mask | Value | Means |
|---|---|---|---|
| Group | 0xf0000000 | 0x10000000 | SYSTEM |
| Area | 0x0f000000 | 0x01000000 | GLOBAL |
| Type | 0x00ff0000 | 0x00200000 | BOOLEAN |
| Ordinal | 0x0000ffff | 0x00000405 | 0x405 |
Reading it from an app
CarPropertyManager mgr = (CarPropertyManager)
car.getCarManager(Car.PROPERTY_SERVICE);
boolean value =
mgr.getBooleanProperty(VehiclePropertyIds.FUEL_LEVEL_LOW, 0);This property is read-only — writes are rejected. It fires a callback whenever the value changes.

