[TIMOB-3051] Android: Requesting battery state hangs up the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:46.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M08 |
Components | Android |
Labels | android, kitchensink, lifecycle_refactor, platform, regression, release-1.6.0, reported-1.6.0 |
Reporter | Marshall Culpepper |
Assignee | Marshall Culpepper |
Created | 2011-04-15T03:35:33.000+0000 |
Updated | 2011-04-17T02:00:46.000+0000 |
Description
See the KS Platform > Platform Data tests. It hangs while waiting for batteryState / batteryLevel.
(from [7bb99114fd45352a979a0fa37a1e3bfb2e2b7fb7]) battery state/level accessors are now non blocking and we register the broadcast receiver when the user sets batteryMonitoring to true or an
event listener for "battery" is added. the batteryState/batteryLevel
properties are now UNKNOWN / -1 by default. updated the KS platform data
example [#3051 state:fixed-in-qa]
https://github.com/appcelerator/titanium_mobile/commit/7bb99114fd45352a979a0fa37a1e3bfb2e2b7fb7"> https://github.com/appcelerator/titanium_mobile/commit/7bb99114fd45...
[INFO] Titanium SDK version: 1.6.0 (02/08/11 20:55 bd9d124...) galaxy tab (2.2.2) G1 (1.6) Nexus S (2.3) sim 2.1