Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2918] Android: Update KS to remove accelerometer events on pause, etc

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:27.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M07
ComponentsAndroid
Labelsaccelerometer, android, kitchen, release-1.6.0, sink
ReporterOpie Cyrus
AssigneeOpie Cyrus
Created2011-04-15T03:32:56.000+0000
Updated2011-04-17T02:00:27.000+0000

Description

Spawned from #992

Update KS to handle pause, etc events and remove accelerometer listeners so that the accelerometer is not being used when the app is in the background.

Comments

  1. Opie Cyrus 2011-04-15

    (from [a8f1174c088857741e2f46190c81de76154f1e65]) [#2918 state:fixed-in-qa] updated KS accelerometer

    added pause / resume handlers in accelerometer in order to add and remove accelerometer events so accelerometer wont run in background
    https://github.com/appcelerator/titanium_mobile/commit/a8f1174c088857741e2f46190c81de76154f1e65"> https://github.com/appcelerator/titanium_mobile/commit/a8f1174c0888...

  2. Opie Cyrus 2011-04-15

    Fix can be verified via KS. When inside accelerometer example, when hitting back or home you should see a log entry that indicates the event has been removed. You should also see another log entry when resuming about the event being added again.

  3. Bill Dawson 2011-04-15

    2.2 device, Titanium 1.6.0 6e8d57883

    Confirmed...

    • Log entries appear as stated by Opie.

    • I can see the GPS antenna getting turned off when backing out of the Geo test, which confirms that the events are being removed on pause.

    • GPS antenna successfully turns on again when going back into the Geo test.

JSON Source