Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3051] Android: Requesting battery state hangs up the app

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M08
ComponentsAndroid
Labelsandroid, kitchensink, lifecycle_refactor, platform, regression, release-1.6.0, reported-1.6.0
ReporterMarshall Culpepper
AssigneeMarshall Culpepper
Created2011-04-15T03:35:33.000+0000
Updated2011-04-17T02:00:46.000+0000

Description

See the KS Platform > Platform Data tests. It hangs while waiting for batteryState / batteryLevel.

Comments

  1. Marshall Culpepper 2011-04-15

    (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...

  2. Thomas Huelbert 2011-04-15

    [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

JSON Source