How to test battery charging speed?
<p>How can I detect battery <strong>charging speed</strong> in android device?
I can detect battery status using below code. but not charging speed.</p>

<pre><code>IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_BATTERY_CHANGED);
BatteryChangeReceiver receiver = new BatteryChangeReceiver(subscriber);
registerReceiver(receiver, filter);


public class BatteryChangeReceiver extends BroadcastReceiver {

    @Override public void onReceive(Context context, Intent intent) {
              // here I get all battery status.
    }
  }
</code></pre>

<p>I also refer <a href="https://developer.android.com/training/monitoring-device-state/battery-monitoring.html" rel="nofollow noreferrer">this</a>,<a href="https://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone">this</a> and <a href="https://github.com/rmanor/currentwidget" rel="nofollow noreferrer">this</a> but cant find the way to check charging speed.</p>

<p>There is an app (<a href="https://play.google.com/store/apps/details?id=com.gombosdev.ampere" rel="nofollow noreferrer">Ampere</a>) that displaying charging speed. 
<a href="https://i.stack.imgur.com/DQ7kq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DQ7kq.png" alt=""></a>
<a href="https://i.stack.imgur.com/0PuJT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0PuJT.png" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/lu0r8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lu0r8.png" alt="enter image description here"></a>
How can I achieve this?</p>

<p>Thanks in advance.</p>