Estimating time until battery is depleted for Android phones programmatically
<p>So there are ways to get the current battery levels via a listener. However, these give you the values of the phone's current battery state, but no indicator of how fast/slow is the rate at which the battery is draining.</p>

<p>What would be a way to estimate the time remaining until the battery is depleted? Can you do anything knowing what the voltage is? Or perhaps monitor the rate at which the battery drains over a period of time and then extrapolating it?</p>

<p>Many thanks.</p>
