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

Wrapping all elements in RecycleView
How to Preload Interstitial Ad in Android application
Set transparent theme but custom style to activity on Android
Error showing for recyclerview demo
Android : How to set an image to an imageview from a url programatically
how to avoid ClassCast Exception
Pagination using retrofit to fetch next 10 items from API on scrolling in android
Live stream from Android app to Youtube channel
Show result JSON Parse to Custom Listview with Section
How to customize Material Calendar according to requirement?
How to use ZXingScannerFragment in PageRenderer
How to make a service unique which is defined in library
ListView is pushing up when keyboard popups
relativelayout inside radio group
Mount System parition from shell script not working in OTA package
Saving user credentials from google sign in with Android?

Categories

HOME
gridview
c99
ggplot2
flex
serialization
sitecore
graphics
knitr
seo
babeljs
data-visualization
jax-ws
line
angular-dart
jsonpath
eip
libusb
sse
boost-icl
breadth-first-search
springfox
libigl
ember-cli
object-storage
roundup
strongname
moses
pylons
ms-access-web-app
ms-access-2003
carrierwave
constexpr
scrollview
gitlab-api
anki
zend-debugger
git-squash
clickjacking
sammy.js
classcastexception
baidu-map
mnist
searchkit
sim-toolkit
reason
wurfl
playframework-2.1
google-earth-engine
dm-script
reactivekit
unordered-map
ogc
escpos
plr
opennms
dotnet-httpclient
fclose
lightning
pair-programming
wpas
subnet
backbone-collections
git-flow
libjpeg
java-websocket
cmp
gameplay-kit
mathcad
jtree
vibrate
iotivity
resourcemanager
jodd
jquery-jscrollpane
delta
gogs
simevents
realsense
include-guards
typeconverter
jquery-forms-plugin
rrule
cryptographichashfunction
variadic-templates
pseudo-class
administration
jqmodal
codeplex
gnumeric
mutual-authentication
vsx
getopt
sbcl
scriptaculous
bin
model-driven-development
dtmf
inappsettingskit
beaker-testing
tlf
observium
traceability
cardreader
pdfviewer
qtconcurrent
thttpd
hibernateexception
convention
expression-blend-4
drawtobitmap
photolibrary
facebook-iframe
web-garden
opml
pos-for-.net
burndowncharts
django-piston
web-application-project
wordprocessingml

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