Skip to content
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:

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x01000000GLOBAL
Type0x00ff00000x00200000BOOLEAN
Ordinal0x0000ffff0x000004050x405

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.