Well, you get different numbers :)
the scale is the integer containing the maximum battery level.
So with the second method you get the percentage (hence it is called batteryPct
) you have left. With the first you get the asolute number of your battery level. It is defined as integer field containing the current battery level, from 0 to EXTRA_SCALE.