I am trying to sample accurate battery levels in my application but I'm really struggling. Currently I have:
String s = String.valueOf(BATTERY_PROPERTY_CURRENT_NOW);
batteryShow.setText(s);
but just returns 2 on different devices and different powers. Ideally I would get the vale in mAh but any suggestions would go along way.
NOTE I have looked at
https://developer.android.com/training/monitoring-device-state/battery-monitoring.html
without much joy.