java - Unit of Measure for Battery Level Percentage -
i'm using jsr 363 reference implementation in project. wish use , display battery level obtained device.
which quantity used represent battery level percentage. although electricpotential obvious candidate, devices i'm targeting report value in relative range empty full. see ios docs example.
i plan display percentage, ideally using quantityformat in general manner of handling other quantities.
battery level: 57%
the alternate display graphical wouldn't expect library provide:
aaron,
thanks interest , suggestion on how use jsr 363.
while java me 8 embedded offers optional package power management, depending on target devices, may not run meep 8 or java me 8 embedded. fortunately, jsr 363 supports both, , we'll provide similar on top of meep 8 , our ri, too.
the actual class change bit since we're restructuring quantities coming api , in additional modules, in si class of ri, dimensionless unit constant percent
/** * dimensionless unit accepted use si units (standard name <code>%</code>). */ public static final unit<dimensionless> percent is going available , best unit use case.
regards, werner keil co-spec lead, jsr 363
Comments
Post a Comment