Diego,
This is normal.
Battery charge state granularity is device- and firmware- specific.
The documentation only says this:
public static final String EXTRA_LEVEL
Since: API Level 5
Extra for ACTION_BATTERY_CHANGED: integer field containing the current
battery level, from 0 to EXTRA_SCALE.
Constant Value: "level"
.... so in theory, it's not even guaranteed to be between 0 and 100.
Could be 0 to 10000 :)
In practice, the value of EXTRA_SCALE inside Android is constant, 100.
-- Kostya
27.11.2010 15:48, Diego Queiroz ?????:
Ok, ty!
Just something else.
I got an galaxy s and im trying to trigger this broadcast.
it's ok, working well.
but i noted that the level of the batery does NOT decrease gradually,
like 100, 99, 98, 97 an then on.
is it what really happens or i'm buggy here?
my decrease of level is like 100, 90, 80, 70 ...
ty in advance
On Fri, Nov 26, 2010 at 12:41 AM, TreKing <[email protected]
<mailto:[email protected]>> wrote:
On Thu, Nov 25, 2010 at 8:44 PM, Diego Queiroz <[email protected]
<mailto:[email protected]>> wrote:
When this broadcast is sent?
when the level of the battery changes?
Yes <http://tinyurl.com/33d2bel>
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> -
Chicago transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
*Diego Queiroz*
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en