Attention:
SystemProperties.get("status.battery.level_raw")
can get battery status instantly! Like typing #getprop
status.battery.level_raw in adb shell
On Sep 11, 11:46 pm, Alex Tang <[email protected]> wrote:
> First I want to acheive battery status and signal strength instantly.
> For Battery Status, we can use SystemProperties.get
> ("status.battery.level_raw") to get current battery level. This class
> is not in SDK reference, but we can see this function is used in
> BatteryService and other fields. I use it successfully
> But for Signal Strength, I only find the way to use
> onSignalStrengthChange(int asu) which only gives us an "asu", new
> version seems to support onSignalStrengthsChange(....). But now, is
> there better ways for exact signal strength?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---