-3

I am writing an application where I need to fetch Device Battery status.

Here I found following these two property :

 1. BatteryManager.EXTRA_SCALE and
 2. BatteryManager.EXTRA_LEVEL

What is difference between both. Any suggestion?

CoDe
  • 11,056
  • 14
  • 90
  • 197

1 Answers1

5

EXTRA_LEVEL - integer field containing the current battery level, from 0 to EXTRA_SCALE. EXTRA_SCALE - Extra for ACTION_BATTERY_CHANGED: integer containing the maximum battery level.

http://developer.android.com/reference/android/os/BatteryManager.html

Helton Isac
  • 764
  • 7
  • 12