android


Difference between BatteryManager.EXTRA_SCALE and BatteryManager.EXTRA_LEVEL


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?
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

Related Links

Android background that ripples when pressed, but solid color when selected?
onResume for android annotations
The meta-data does not have the right value Google Maps v2 on Android API 10
CSS3 sliding image on hover, strange spacing
Webview HTML input type file in Android
java.net.UnknownHostException: Unable to resolve host “graph.facebook.com” when I run an Android Facebook app after closing emulator
How to disable the message on preview of Android Studio?
login with facebook in phonegap 4.2
android, layout null pointer exception :: no clear reason [duplicate]
Android: Frame animation on Swipe Gesture
Problems using and LDR to play Audio from SD card
Ionic BUILD FAILED when running “ionic run android”
In app billing issue
Android ListView click set all Checkboxs to enabled
Thread synchronization in android
Unable to build PlusClient with gradle (Android Studio)

Categories

HOME
go
azure-stream-analytics
oracle12c
facebook-oauth
cobalt
fuelux
amp-html
formal-languages
swt
spring-data-mongodb
rds
big-o
fhir
openbugs
magnetic-cards
flatpak
altera
package-managers
glyphicons
red5
shortest-path
topology
articulate-storyline
object-storage
jboss6.x
slidetoggle
bulletphysics
licensing
vex
parse-tree
protein-database
apns-php
kill
magento-1.9.3
show-hide
memory-mapping
opennms
automapper-5
chai-as-promised
posixct
context-switch
azure-cli
jqchart
oozie-coordinator
d3-force-directed
trigger.io
filenet
branch-prediction
atlas
myspace
windows-azure-queues
rspec2
wso2developerstudio
hclust
vorpal.js
riot
phpwebsocket
beanstalk
cycle2
spring-retry
decimalformat
oracle-spatial
iiop
ssis-data-flow
addressing-mode
appserver
functional-java
ecslidingviewcontroller
windows-phone-8-sdk
stacky
twisted.web
wimax
panda3d
mkv
fragmenttransaction
mapping-by-code
apache-commons-dbutils
relative
dataform
codebase
echo3
alsb
sifr3
httpcookie
netbeans6.1

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App