I have been dealing with battery display recently.
For all devices, I provide percentage display.
property in resources.xml/properties.xml
zq means battery format, in percentage or days left
this property has not tag <setting> in resources.xml/settings.xml,which means it is immutable.
I create a new resources directory resources-batterydays.xml and a settings.xml to make it changable for the devices hava this api.
settings.xml
In monkey.jungle, I just include the resources-batterydays merely for the specific devices with that api.
My getBatteryValue function:
Recently I find my release version has weird phenomenon.
After starting, the value of battery display properly.
But if I modify some app settings not related to battery format, the value of battery will be - after saving performed.
It means the value of zq/ battery format is neither 0 nor 1.
How can it be this?
Did I do something wrong?